mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Fix Trombi edit comment view
Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
parent
b4be40a3a7
commit
88d81df23d
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user