mirror of
https://github.com/ae-utbm/sith.git
synced 2025-08-09 02:29:58 +00:00
@@ -277,4 +277,8 @@ class TrombiCommentCreateView(TrombiCommentFormView, CreateView):
|
|||||||
class TrombiCommentEditView(TrombiCommentFormView, CanViewMixin, UpdateView):
|
class TrombiCommentEditView(TrombiCommentFormView, CanViewMixin, UpdateView):
|
||||||
pk_url_kwarg = "comment_id"
|
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