~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlmaps/apps.py

  • Committer: kaputtnik
  • Date: 2019-05-30 18:20:02 UTC
  • mto: This revision was merged to the branch mainline in revision 540.
  • Revision ID: kaputtnik-20190530182002-g7l91m1xo28clghv
adjusted README; first commit on the new server

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from django.apps import AppConfig
 
2
from django.db.models import signals
 
3
 
 
4
 
 
5
class WlMapsConfig(AppConfig):
 
6
 
 
7
    name = 'wlmaps'
 
8
    verbose_name = 'Widelands Maps'
 
9
 
 
10
    def ready(self):
 
11
        from wlmaps.management import create_notice_types
 
12
        signals.post_migrate.connect(create_notice_types, sender=self)
 
13