From 45e698b5aa215e58c3d2d7e819bf4bcffd1c2c79 Mon Sep 17 00:00:00 2001 From: Joshua Carp Date: Mon, 16 Oct 2017 09:54:41 -0400 Subject: [PATCH] Use `FlaskForm` instead of deprecated `Form`. https://flask-wtf.readthedocs.io/en/latest/api.html#flask_wtf.Form --- .../{{cookiecutter.app_name}}/public/forms.py | 4 ++-- .../{{cookiecutter.app_name}}/user/forms.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/public/forms.py b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/public/forms.py index ed7f1fe..d4c873b 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/public/forms.py +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/public/forms.py @@ -1,13 +1,13 @@ # -*- coding: utf-8 -*- """Public forms.""" -from flask_wtf import Form +from flask_wtf import FlaskForm from wtforms import PasswordField, StringField from wtforms.validators import DataRequired from {{cookiecutter.app_name}}.user.models import User -class LoginForm(Form): +class LoginForm(FlaskForm): """Login form.""" username = StringField('Username', validators=[DataRequired()]) diff --git a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/forms.py b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/forms.py index 1ba4166..a3a05f1 100644 --- a/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/forms.py +++ b/{{cookiecutter.app_name}}/{{cookiecutter.app_name}}/user/forms.py @@ -1,13 +1,13 @@ # -*- coding: utf-8 -*- """User forms.""" -from flask_wtf import Form +from flask_wtf import FlaskForm from wtforms import PasswordField, StringField from wtforms.validators import DataRequired, Email, EqualTo, Length from .models import User -class RegisterForm(Form): +class RegisterForm(FlaskForm): """Register form.""" username = StringField('Username',