SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 8ed321ad authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Turn off again

parent 33925fac
No related branches found
No related tags found
No related merge requests found
...@@ -76,10 +76,11 @@ def update_instance_indexes(sender_type_id, object_type_id, object_id): ...@@ -76,10 +76,11 @@ def update_instance_indexes(sender_type_id, object_type_id, object_id):
class AutoSearchIndexingProcessor(signals.RealtimeSignalProcessor): class AutoSearchIndexingProcessor(signals.RealtimeSignalProcessor):
def handle_save(self, sender, instance, **kwargs): def handle_save(self, sender, instance, **kwargs):
if not isinstance(instance, Notification): # if not isinstance(instance, Notification):
sender_type_id = ContentType.objects.get_for_model(sender).id # sender_type_id = ContentType.objects.get_for_model(sender).id
instance_type_id = ContentType.objects.get_for_model(instance).id # instance_type_id = ContentType.objects.get_for_model(instance).id
chain = ( # chain = (
remove_objects_indexes.s(sender_type_id, instance_type_id, instance.id) # remove_objects_indexes.s(sender_type_id, instance_type_id, instance.id)
| update_instance_indexes.s(sender_type_id, instance_type_id, instance.id)) # | update_instance_indexes.s(sender_type_id, instance_type_id, instance.id))
chain() # chain()
pass
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment