From 6f3d25d7b1d411ae1ea675f5f13015ecb3270719 Mon Sep 17 00:00:00 2001 From: Jonas Winkler Date: Tue, 3 Nov 2020 13:51:49 +0100 Subject: [PATCH] this was not required since saving a document updates the index anyway --- src/documents/apps.py | 2 -- src/documents/signals/handlers.py | 4 ---- 2 files changed, 6 deletions(-) diff --git a/src/documents/apps.py b/src/documents/apps.py index 48807adf1..ca278e2e3 100644 --- a/src/documents/apps.py +++ b/src/documents/apps.py @@ -16,7 +16,6 @@ class DocumentsConfig(AppConfig): run_post_consume_script, cleanup_document_deletion, set_log_entry, - index_document, set_correspondent, set_document_type, set_tags @@ -25,7 +24,6 @@ class DocumentsConfig(AppConfig): document_consumption_started.connect(run_pre_consume_script) - document_consumption_finished.connect(index_document) document_consumption_finished.connect(add_inbox_tags) document_consumption_finished.connect(set_correspondent) document_consumption_finished.connect(set_document_type) diff --git a/src/documents/signals/handlers.py b/src/documents/signals/handlers.py index edabfe0aa..231a39e0d 100755 --- a/src/documents/signals/handlers.py +++ b/src/documents/signals/handlers.py @@ -16,10 +16,6 @@ def logger(message, group): logging.getLogger(__name__).debug(message, extra={"group": group}) -def index_document(sender, document=None, logging_group=None, **kwargs): - index.add_document_to_index(sender, instance=document) - - def add_inbox_tags(sender, document=None, logging_group=None, **kwargs): inbox_tags = Tag.objects.filter(is_inbox_tag=True) document.tags.add(*inbox_tags)