Browse Source

Merge pull request #428 from haliphax/patch-1

pass arguments from form method to ReplyForm class
Peter Justin 7 years ago
parent
commit
865279c3b5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      flaskbb/forum/views.py

+ 2 - 2
flaskbb/forum/views.py

@@ -505,9 +505,9 @@ class EditPost(MethodView):
             'forum/new_post.html', topic=post.topic, form=form, edit_mode=True
         )
 
-    def form(self):
+    def form(self, **kwargs):
         current_app.pluggy.hook.flaskbb_form_new_post(form=ReplyForm)
-        return ReplyForm()
+        return ReplyForm(**kwargs)
 
 
 class ReportView(MethodView):