SciPost Code Repository

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

Debug

parent 8d284427
No related branches found
No related tags found
No related merge requests found
...@@ -79,9 +79,10 @@ def vet_submitted_comment(request, comment_id): ...@@ -79,9 +79,10 @@ def vet_submitted_comment(request, comment_id):
# Update `latest_activity` fields # Update `latest_activity` fields
content_object = comment.content_object content_object = comment.content_object
content_object.__class__.objects.filter(id=content_object.id).update( if hasattr(content_object, 'latest_activity'):
latest_activity=timezone.now()) content_object.__class__.objects.filter(id=content_object.id).update(
content_object.refresh_from_db() latest_activity=timezone.now())
content_object.refresh_from_db()
if isinstance(content_object, Submission): if isinstance(content_object, Submission):
# Add events to Submission and send mail to author of the Submission # Add events to Submission and send mail to author of the Submission
......
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