Просмотр исходного кода

Slowly adding "new reply" action

Ralfp 12 лет назад
Родитель
Сommit
53ba8061d5
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      misago/apps/threads/posting.py

+ 5 - 0
misago/apps/threads/posting.py

@@ -43,6 +43,11 @@ class EditThreadView(EditThreadBaseView, TypeMixin):
 
 
 
 
 class NewReplyView(NewReplyBaseView, RedirectToPostMixin, TypeMixin):
 class NewReplyView(NewReplyBaseView, RedirectToPostMixin, TypeMixin):
+    action = 'new_reply'
+
+    def set_context(self):
+        pass
+        
     def response(self):
     def response(self):
         if self.post.moderated:
         if self.post.moderated:
             request.messages.set_flash(Message(_("Your reply has been posted. It will be hidden from other members until moderator reviews it.")), 'success', 'threads_%s' % self.post.pk)
             request.messages.set_flash(Message(_("Your reply has been posted. It will be hidden from other members until moderator reviews it.")), 'success', 'threads_%s' % self.post.pk)