regluit/core/apps.py

11 lines
313 B
Python

from django.apps import AppConfig
from django.db.models.signals import post_migrate
from regluit.core.signals import create_notice_types
class CoreConfig(AppConfig):
name = 'regluit.core'
verbose_name = ' core objects'
def ready(self):
post_migrate.connect(create_notice_types, sender=self)