mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-04-09 08:10:58 +00:00
19 lines
594 B
Python
19 lines
594 B
Python
""" Django notifications apps file """
|
|
# -*- coding: utf-8 -*-
|
|
from django.apps import AppConfig
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
class Config(AppConfig):
|
|
name = "notifications"
|
|
verbose_name = _("Notifications")
|
|
default_auto_field = "django.db.models.AutoField"
|
|
|
|
def ready(self) -> None:
|
|
from notifications.signals import ( # pylint: disable=import-outside-toplevel
|
|
notify,
|
|
notify_handler,
|
|
)
|
|
|
|
notify.connect(notify_handler, dispatch_uid="notifications.models.notification")
|
|
return super().ready()
|