Removed log components and introduced signals for tags & correspondents

This commit is contained in:
Daniel Quinn
2016-03-28 11:11:15 +01:00
parent 49b56425e8
commit b92e007e15
12 changed files with 175 additions and 140 deletions

View File

@@ -2,4 +2,15 @@ from django.apps import AppConfig
class DocumentsConfig(AppConfig):
name = 'documents'
name = "documents"
def ready(self):
from .signals import document_consumption_finished
from .signals.handlers import set_correspondent, set_tags
document_consumption_finished.connect(set_tags)
document_consumption_finished.connect(set_correspondent)
AppConfig.ready(self)