Browse Source

Updated WTForms imports

poc/tabtitle
Darks 4 months ago
parent
commit
dda7cce5d5
Signed by: Darks
GPG Key ID: 7515644268BE1433
  1. 3
      app/forms/account.py
  2. 2
      app/forms/poll.py
  3. 2
      app/forms/search.py
  4. 2
      app/utils/antibot_field.py

3
app/forms/account.py

@ -1,6 +1,7 @@
from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, TextAreaField, SubmitField, DecimalField, SelectField, RadioField
from wtforms.fields.html5 import DateField, EmailField
from wtforms.fields.datetime import DateField
from wtforms.fields.simple import EmailField
from wtforms.validators import InputRequired, Optional, Email, EqualTo
from flask_wtf.file import FileField # Cuz' wtforms' FileField is shitty
import app.utils.validators as vd

2
app/forms/poll.py

@ -1,7 +1,7 @@
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField, TextAreaField, SelectField, \
BooleanField
from wtforms.fields.html5 import DateTimeField
from wtforms.fields.datetime import DateTimeField
from wtforms.validators import InputRequired, Optional
from datetime import datetime, timedelta

2
app/forms/search.py

@ -1,6 +1,6 @@
from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.fields.html5 import DateField
from wtforms.fields.datetime import DateField
from wtforms.validators import InputRequired, Optional

2
app/utils/antibot_field.py

@ -1,4 +1,4 @@
from wtforms.fields.html5 import EmailField
from wtforms.fields.simple import EmailField
from wtforms.validators import Optional, ValidationError
def antibot_validator(form, field):

Loading…
Cancel
Save