mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-24 02:02:23 -04:00
* PEP8 conformity * rename run_post_consume_external_script to run_post_consume_script * rename run_pre_consume_external_script to run_pre_consume_script * change order of declaration and use from post...pre to pre...post
23 lines
670 B
Python
23 lines
670 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class DocumentsConfig(AppConfig):
|
|
|
|
name = "documents"
|
|
|
|
def ready(self):
|
|
|
|
from .signals import document_consumption_started
|
|
from .signals import document_consumption_finished
|
|
from .signals.handlers import (
|
|
set_correspondent, set_tags, run_pre_consume_script,
|
|
run_post_consume_script)
|
|
|
|
document_consumption_started.connect(run_pre_consume_script)
|
|
|
|
document_consumption_finished.connect(set_tags)
|
|
document_consumption_finished.connect(set_correspondent)
|
|
document_consumption_finished.connect(run_post_consume_script)
|
|
|
|
AppConfig.ready(self)
|