SciPost Code Repository

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

Correct bug: missing vetted_by upon comment refusal

parent f6f07484
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,8 @@ def vet_submitted_comment(request, comment_id):
elif form.cleaned_data['action_option'] == '2':
# The comment request is simply rejected
Comment.objects.filter(id=comment.id).update(
status=int(form.cleaned_data['refusal_reason']))
status=int(form.cleaned_data['refusal_reason']),
vetted_by=request.user.contributor)
comment.refresh_from_db()
# Send emails
......
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