SciPost Code Repository

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

Debug signalprocessor

parent e31dbc30
No related branches found
No related tags found
No related merge requests found
...@@ -20,8 +20,8 @@ class AutoSearchIndexingProcessor(signals.RealtimeSignalProcessor): ...@@ -20,8 +20,8 @@ class AutoSearchIndexingProcessor(signals.RealtimeSignalProcessor):
Given a set of `objects` model instances, remove them from the index as preparation Given a set of `objects` model instances, remove them from the index as preparation
for the new index. for the new index.
""" """
sender = ContentType.get_for_id(sender_type_id) sender = ContentType.objects.get_for_id(sender_type_id)
object_type = ContentType.get_for_id(object_type_id) object_type = ContentType.objects.get_for_id(object_type_id)
instance = object_type.get_object_for_this_type(pk=object_id) instance = object_type.get_object_for_this_type(pk=object_id)
if isinstance(instance, Submission): if isinstance(instance, Submission):
...@@ -55,8 +55,8 @@ class AutoSearchIndexingProcessor(signals.RealtimeSignalProcessor): ...@@ -55,8 +55,8 @@ class AutoSearchIndexingProcessor(signals.RealtimeSignalProcessor):
""" """
Given an individual model instance, update its entire indexes. Given an individual model instance, update its entire indexes.
""" """
sender = ContentType.get_for_id(sender_type_id) sender = ContentType.objects.get_for_id(sender_type_id)
object_type = ContentType.get_for_id(object_type_id) object_type = ContentType.objects.get_for_id(object_type_id)
instance = object_type.get_object_for_this_type(pk=object_id) instance = object_type.get_object_for_this_type(pk=object_id)
try: try:
......
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