mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-17 16:41:19 +00:00
22 lines
694 B
Python
22 lines
694 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class DocumentsConfig(AppConfig):
|
|
|
|
name = "documents"
|
|
|
|
def ready(self):
|
|
|
|
from .signals import document_consumption_finished
|
|
from .signals import document_consumption_started
|
|
from .signals.handlers import (
|
|
set_correspondent, set_tags, run_post_consume_external_script, run_pre_consume_external_script)
|
|
|
|
document_consumption_finished.connect(set_tags)
|
|
document_consumption_finished.connect(set_correspondent)
|
|
document_consumption_finished.connect(run_post_consume_external_script)
|
|
|
|
document_consumption_started.connect(run_pre_consume_external_script)
|
|
|
|
AppConfig.ready(self)
|