Files
ihrm/notifications/apps.py

19 lines
499 B
Python
Raw Normal View History

"""Django notifications apps file"""
2023-08-01 16:47:47 +05:30
# -*- coding: utf-8 -*-
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
2023-08-01 16:47:47 +05:30
class Config(AppConfig):
name = "notifications"
verbose_name = _("Notifications")
default_auto_field = "django.db.models.AutoField"
2023-08-01 16:47:47 +05:30
def ready(self):
super(Config, self).ready()
# this is for backwards compatibility
2023-08-01 16:47:47 +05:30
import notifications.signals
2023-08-01 16:47:47 +05:30
notifications.notify = notifications.signals.notify