Commit 37fd3b20ffbb9139a848eb938e5b34f7ded15dd1

Authored by Antoine Goutenoir
1 parent 79a92097
Exists in master

Update the base Form name to follow a future deprecation.

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
flaskr/forms.py
1   -from flask_wtf import Form
  1 +from flask_wtf import FlaskForm
2 2 from wtforms import \
3 3 StringField, \
4 4 PasswordField, \
... ... @@ -14,7 +14,7 @@ form_content = content['estimate']['form']
14 14  
15 15 # ESTIMATION FORM #############################################################
16 16  
17   -class EstimateForm(Form):
  17 +class EstimateForm(FlaskForm):
18 18 # email = StringField(
19 19 # label=form_content['email']['label'],
20 20 # description=form_content['email']['description'],
... ... @@ -110,7 +110,7 @@ class EstimateForm(Form):
110 110  
111 111 # LOGIN FORM ##################################################################
112 112  
113   -class LoginForm(Form):
  113 +class LoginForm(FlaskForm):
114 114 username = StringField(u'Username', validators=[validators.required()])
115 115 password = PasswordField(u'Password', validators=[validators.optional()])
116 116  
... ...