mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
@ -277,4 +277,8 @@ class TrombiCommentCreateView(TrombiCommentFormView, CreateView):
|
||||
class TrombiCommentEditView(TrombiCommentFormView, CanViewMixin, UpdateView):
|
||||
pk_url_kwarg = "comment_id"
|
||||
|
||||
def form_valid(self, form):
|
||||
form.instance.is_moderated = False
|
||||
return super(TrombiCommentEditView, self).form_valid(form)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user