django-notifications/notifications/apps.py

15 lines
404 B
Python
Raw Normal View History

''' Django notifications apps file '''
# -*- coding: utf-8 -*-
2015-12-09 13:30:34 +00:00
from django.apps import AppConfig
2015-12-11 13:32:20 +00:00
2015-12-09 13:30:34 +00:00
class Config(AppConfig):
name = "notifications"
default_auto_field = 'django.db.models.AutoField'
2015-12-09 13:30:34 +00:00
def ready(self):
super(Config, self).ready()
# this is for backwards compability
2015-12-11 13:32:20 +00:00
import notifications.signals
notifications.notify = notifications.signals.notify