diff --git a/SciPost_v1/signalprocessors.py b/SciPost_v1/signalprocessors.py index 877a2b7a5dcaf204cfbd58d8806a3fe25b99698f..2ca6ef7906e7256cdc74fc9fcaf9a24920a20f5e 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