-from django.db.models.signals import post_syncdb
-import forum.models
-
-def setup_badges(sender, **kwargs):
- from forum.badges import ALL_BADGES
-
- for badge in ALL_BADGES:
- badge.install()
-
-post_syncdb.connect(setup_badges, sender=forum.models)