SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit fcc156bf authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Fix anonymous turned on, on wrong CommentForm

parent 759c455a
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ class CommentForm(forms.ModelForm):
{'rows': 3, 'placeholder': '(these remarks will not be publicly visible)'})
self.fields['anonymous'].initial = True
if not self.is_report_comment:
if self.is_report_comment:
del self.fields['anonymous']
......
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