From 8ed321aded2df478fd422df8e55889738d4dcbab Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Wed, 20 Mar 2019 22:10:54 +0100 Subject: [PATCH] Turn off again --- SciPost_v1/signalprocessors.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/SciPost_v1/signalprocessors.py b/SciPost_v1/signalprocessors.py index 877a2b7a5..2ca6ef790 100644 --- a/SciPost_v1/signalprocessors.py +++ b/SciPost_v1/signalprocessors.py @@ -76,10 +76,11 @@ def update_instance_indexes(sender_type_id, object_type_id, object_id): class AutoSearchIndexingProcessor(signals.RealtimeSignalProcessor): def handle_save(self, sender, instance, **kwargs): - if not isinstance(instance, Notification): - sender_type_id = ContentType.objects.get_for_model(sender).id - instance_type_id = ContentType.objects.get_for_model(instance).id - chain = ( - remove_objects_indexes.s(sender_type_id, instance_type_id, instance.id) - | update_instance_indexes.s(sender_type_id, instance_type_id, instance.id)) - chain() + # if not isinstance(instance, Notification): + # sender_type_id = ContentType.objects.get_for_model(sender).id + # instance_type_id = ContentType.objects.get_for_model(instance).id + # chain = ( + # remove_objects_indexes.s(sender_type_id, instance_type_id, instance.id) + # | update_instance_indexes.s(sender_type_id, instance_type_id, instance.id)) + # chain() + pass -- GitLab