remove html5 from wtforms.fields
This commit is contained in:
parent
9fe3f87749
commit
98dd2ccaab
3 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ from ..models import User, Role, Region
|
|||
from flask_wtf import FlaskForm, RecaptchaField
|
||||
from wtforms import StringField, PasswordField, BooleanField, SubmitField, SelectField, DecimalField
|
||||
from wtforms import validators, ValidationError
|
||||
from wtforms.fields.html5 import EmailField, DecimalRangeField
|
||||
from wtforms.fields import EmailField, DecimalRangeField
|
||||
|
||||
class OrderForm(FlaskForm):
|
||||
cpu = DecimalRangeField('Processor Cores', default=2)
|
||||
|
|
|
@ -2,7 +2,7 @@ from flask_wtf import FlaskForm, RecaptchaField
|
|||
|
||||
from wtforms import StringField, PasswordField, BooleanField, SubmitField, SelectField, DecimalField
|
||||
from wtforms import validators, ValidationError
|
||||
from wtforms.fields.html5 import EmailField
|
||||
from wtforms.fields import EmailField
|
||||
from ..models import User
|
||||
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ from ..models import User, Role
|
|||
from flask_wtf import FlaskForm, RecaptchaField
|
||||
from wtforms import StringField, PasswordField, BooleanField, SubmitField, SelectField, DecimalField
|
||||
from wtforms import validators, ValidationError
|
||||
from wtforms.fields.html5 import EmailField
|
||||
from wtforms.fields import EmailField
|
||||
|
||||
class EditProfileForm(FlaskForm):
|
||||
name = StringField('Name:', [validators.DataRequired(), validators.Length(3, 60)])
|
||||
|
|
Loading…
Reference in a new issue