Browse Source

Fix FlaskForm deprecation warning

sh4nks 8 years ago
parent
commit
fc6975f791
1 changed files with 2 additions and 2 deletions
  1. 2 2
      flaskbb/management/models.py

+ 2 - 2
flaskbb/management/models.py

@@ -10,7 +10,7 @@
 """
 from wtforms import (TextField, IntegerField, FloatField, BooleanField,
                      SelectField, SelectMultipleField, validators)
-from flask_wtf import Form
+from flask_wtf import FlaskForm
 
 from flaskbb._compat import max_integer, text_type, iteritems
 from flaskbb.extensions import db, cache
@@ -62,7 +62,7 @@ class Setting(db.Model, CRUDMixin):
                       which are in the specified group.
         """
 
-        class SettingsForm(Form):
+        class SettingsForm(FlaskForm):
             pass
 
         # now parse the settings in this group