mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-13 10:07:15 +01:00
15 lines
430 B
Python
15 lines
430 B
Python
|
|
from django.apps import AppConfig
|
||
|
|
from django.conf import settings
|
||
|
|
from paperless_tika.signals import tika_consumer_declaration
|
||
|
|
|
||
|
|
|
||
|
|
class PaperlessTikaConfig(AppConfig):
|
||
|
|
name = "paperless_tika"
|
||
|
|
|
||
|
|
def ready(self):
|
||
|
|
from documents.signals import document_consumer_declaration
|
||
|
|
|
||
|
|
if settings.PAPERLESS_TIKA:
|
||
|
|
document_consumer_declaration.connect(tika_consumer_declaration)
|
||
|
|
AppConfig.ready(self)
|