mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-22 15:51:19 +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):
|
||||
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