]> git.openstreetmap.org Git - osqa.git/blob - forum/management/__init__.py
49ad8d50340cc785c83c2d1a6290d4558a996630
[osqa.git] / forum / management / __init__.py
1 from forum.modules import get_modules_script
2 from django.db.models.signals import post_syncdb
3 import forum.models
4
5 def setup_badges(sender, **kwargs):
6     from forum.badges import ALL_BADGES
7
8     for badge in ALL_BADGES:
9         badge.install()
10
11 post_syncdb.connect(setup_badges, sender=forum.models)
12
13 get_modules_script('management')