pedagogy: allow to deny removal request for comment in moderation

This commit is contained in:
2019-06-20 13:19:35 +02:00
parent 04009a6a5b
commit 806084e707
3 changed files with 45 additions and 8 deletions

View File

@ -130,8 +130,16 @@ class UVCommentModerationForm(forms.Form):
Form handeling bulk comment deletion
"""
reports = forms.ModelMultipleChoiceField(
accepted_reports = forms.ModelMultipleChoiceField(
UVCommentReport.objects.all(),
label=_("Reported comments"),
label=_("Accepted reports"),
widget=forms.CheckboxSelectMultiple,
required=False,
)
denied_reports = forms.ModelMultipleChoiceField(
UVCommentReport.objects.all(),
label=_("Denied reports"),
widget=forms.CheckboxSelectMultiple,
required=False,
)