mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
16 lines
407 B
Python
16 lines
407 B
Python
from django.apps import AppConfig
|
|
from django.utils.translation import gettext_lazy as _
|
|
from paperless.signals import handle_failed_login
|
|
|
|
|
|
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)
|
|
AppConfig.ready(self)
|