~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to pybb/apps.py

  • Committer: franku
  • Date: 2016-12-13 18:28:51 UTC
  • mto: This revision was merged to the branch mainline in revision 443.
  • Revision ID: somal@arcor.de-20161213182851-bo5ebf8pdvw5beua
run the script

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 PybbConfig(AppConfig):
6
 
 
7
 
    name = 'pybb'
8
 
    verbose_name = 'Pybb'
9
 
 
10
 
    def ready(self):
11
 
        from pybb.management.pybb_notifications import create_notice_types
12
 
        signals.post_migrate.connect(create_notice_types, sender=self)