~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to wiki/apps.py

  • Committer: franku
  • Date: 2018-04-03 18:57:40 UTC
  • mto: This revision was merged to the branch mainline in revision 491.
  • Revision ID: somal@arcor.de-20180403185740-kid24y7oa6u6il09
fixed creation of noticetypes -> convert post_syncdb to post_migrate

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
 
5
5
class WikiConfig(AppConfig):
6
 
    
 
6
 
7
7
    name = 'wiki'
8
8
    verbose_name = 'The widelands wiki'
9
 
    
 
9
 
10
10
    def ready(self):
11
11
        from wiki.management import create_notice_types
12
 
        from notification import models as notification
13
 
        print("trying to ")
14
 
        signals.post_migrate.connect(create_notice_types, sender=notification)
 
12
        signals.post_migrate.connect(create_notice_types, sender=self)