From 37fd3b20ffbb9139a848eb938e5b34f7ded15dd1 Mon Sep 17 00:00:00 2001 From: Antoine Goutenoir Date: Wed, 23 Oct 2019 18:02:27 +0200 Subject: [PATCH] Update the base Form name to follow a future deprecation. --- flaskr/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flaskr/forms.py b/flaskr/forms.py index b5c9545..83f60b4 100644 --- a/flaskr/forms.py +++ b/flaskr/forms.py @@ -1,4 +1,4 @@ -from flask_wtf import Form +from flask_wtf import FlaskForm from wtforms import \ StringField, \ PasswordField, \ @@ -14,7 +14,7 @@ form_content = content['estimate']['form'] # ESTIMATION FORM ############################################################# -class EstimateForm(Form): +class EstimateForm(FlaskForm): # email = StringField( # label=form_content['email']['label'], # description=form_content['email']['description'], @@ -110,7 +110,7 @@ class EstimateForm(Form): # LOGIN FORM ################################################################## -class LoginForm(Form): +class LoginForm(FlaskForm): username = StringField(u'Username', validators=[validators.required()]) password = PasswordField(u'Password', validators=[validators.optional()]) -- libgit2 0.21.2