19 lines
498 B
Python
19 lines
498 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class DocumentsConfig(AppConfig):
|
|
|
|
name = "documents"
|
|
|
|
def ready(self):
|
|
|
|
from .signals import document_consumption_finished
|
|
from .signals.handlers import (
|
|
set_correspondent, set_tags, run_external_script)
|
|
|
|
document_consumption_finished.connect(set_tags)
|
|
document_consumption_finished.connect(set_correspondent)
|
|
document_consumption_finished.connect(run_external_script)
|
|
|
|
AppConfig.ready(self)
|