SciPost Code Repository

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

Remove debug prints

parent a500ba2d
No related branches found
No related tags found
No related merge requests found
......@@ -42,10 +42,7 @@ class VetCommentForm(forms.Form):
If the comment is refused, make sure a valid refusal reason is given.
"""
data = super().clean()
print('Cleaning, action_option = %s' % data['action_option'])
if data['action_option'] == str(COMMENT_ACTION_REFUSE):
print('Refusing')
if data['refusal_reason'] == str(COMMENT_REFUSAL_EMPTY):
print('Flagging invalid reason')
self.add_error(None, 'Please choose a valid refusal reason')
return data
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