Browse Source

Merge pull request #377 from sheybey/master

add self argument to TrivializeTopic::post

Fixes  #376
Alec Nikolas Reiter 7 years ago
parent
commit
4ed686a053
1 changed files with 1 additions and 1 deletions
  1. 1 1
      flaskbb/forum/views.py

+ 1 - 1
flaskbb/forum/views.py

@@ -579,7 +579,7 @@ class HighlightTopic(MethodView):
 class TrivializeTopic(MethodView):
     decorators = [allows.requires(IsAtleastModeratorInForum()), login_required]
 
-    def post(topic_id=None, slug=None):
+    def post(self, topic_id=None, slug=None):
         topic = Topic.query.filter_by(id=topic_id).first_or_404()
         topic.important = False
         topic.save()