2018-05-31 03:22:43 +00:00
|
|
|
''' Django notifications apps file '''
|
|
|
|
|
# -*- coding: utf-8 -*-
|
2015-12-09 13:30:34 +00:00
|
|
|
from django.apps import AppConfig
|
2021-04-05 13:53:01 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2015-12-09 13:30:34 +00:00
|
|
|
|
2015-12-11 13:32:20 +00:00
|
|
|
|
2015-12-09 13:30:34 +00:00
|
|
|
class Config(AppConfig):
|
|
|
|
|
name = "notifications"
|
2021-04-05 13:53:01 +00:00
|
|
|
verbose_name = _("Notifications")
|
2021-12-21 01:38:28 +00:00
|
|
|
default_auto_field = 'django.db.models.AutoField'
|
2015-12-09 13:30:34 +00:00
|
|
|
|
|
|
|
|
def ready(self):
|
|
|
|
|
super(Config, self).ready()
|
2023-05-19 23:53:57 +00:00
|
|
|
# this is for backwards compatibility
|
2015-12-11 13:32:20 +00:00
|
|
|
import notifications.signals
|
|
|
|
|
notifications.notify = notifications.signals.notify
|