mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
23 lines
614 B
Python
23 lines
614 B
Python
from django.apps import AppConfig
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from paperless.signals import handle_failed_login
|
|
from paperless.signals import handle_social_account_updated
|
|
|
|
|
|
class PaperlessConfig(AppConfig):
|
|
name = "paperless"
|
|
|
|
verbose_name = _("Paperless")
|
|
|
|
def ready(self):
|
|
from django.contrib.auth.signals import user_login_failed
|
|
|
|
user_login_failed.connect(handle_failed_login)
|
|
|
|
from allauth.socialaccount.signals import social_account_updated
|
|
|
|
social_account_updated.connect(handle_social_account_updated)
|
|
|
|
AppConfig.ready(self)
|