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