Fix Trombi edit comment view

Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
Skia 2017-06-11 23:16:35 +02:00
parent b4be40a3a7
commit 88d81df23d
1 changed files with 4 additions and 0 deletions

View File

@ -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)