SciPost Code Repository

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

Hotfix

parent 4795b0fe
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,11 @@ class AutoSearchIndexingProcessor(signals.RealtimeSignalProcessor):
Submission, Report, Comment, Publication.
"""
try:
if isinstance(instance, [Submission, Report, Comment, Publication, Commentary]):
if (isinstance(instance, Submission) or
isinstance(instance, Report) or
isinstance(instance, Comment) or
isinstance(instance, Publication) or
isinstance(instance, Commentary)):
sender_type_id = ContentType.objects.get_for_model(sender).id
instance_type_id = ContentType.objects.get_for_model(instance).id
chain = (
......
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