mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-02-20 00:39:32 -06:00
19 lines
532 B
Python
19 lines
532 B
Python
from django.apps import AppConfig
|
|
from django.conf import settings
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from paperless_mail.signals import mail_consumer_declaration
|
|
|
|
|
|
class PaperlessMailConfig(AppConfig):
|
|
name = "paperless_mail"
|
|
|
|
verbose_name = _("Paperless mail")
|
|
|
|
def ready(self) -> None:
|
|
from documents.signals import document_consumer_declaration
|
|
|
|
if settings.TIKA_ENABLED:
|
|
document_consumer_declaration.connect(mail_consumer_declaration)
|
|
AppConfig.ready(self)
|