No need to launch the document indexing task
on document state log entries deletion. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.apps import apps
|
||||
from django.db.models.signals import post_delete, post_save
|
||||
from django.db.models.signals import pre_delete, post_delete, post_save
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from kombu import Exchange, Queue
|
||||
@@ -243,11 +243,6 @@ class DocumentStatesApp(MayanAppConfig):
|
||||
|
||||
# Index updating
|
||||
|
||||
post_delete.connect(
|
||||
handler_index_document,
|
||||
dispatch_uid='handler_index_document_delete',
|
||||
sender=WorkflowInstanceLogEntry
|
||||
)
|
||||
post_save.connect(
|
||||
handler_index_document,
|
||||
dispatch_uid='handler_index_document_save',
|
||||
|
||||
Reference in New Issue
Block a user