~widelands-dev/widelands-website/trunk

489.1.2 by franku
added apps.py; post_migrate not working though
1
from django.apps import AppConfig
2
from django.db.models import signals
3
4
5
class WikiConfig(AppConfig):
489.1.3 by franku
fixed creation of noticetypes -> convert post_syncdb to post_migrate
6
489.1.2 by franku
added apps.py; post_migrate not working though
7
    name = 'wiki'
489.1.22 by franku
forgotten autoesacpes on notification templates; comments and cleanups
8
    verbose_name = 'Wiki'
489.1.3 by franku
fixed creation of noticetypes -> convert post_syncdb to post_migrate
9
489.1.2 by franku
added apps.py; post_migrate not working though
10
    def ready(self):
11
        from wiki.management import create_notice_types
489.1.3 by franku
fixed creation of noticetypes -> convert post_syncdb to post_migrate
12
        signals.post_migrate.connect(create_notice_types, sender=self)