Remove required data validator from form
This commit is contained in:
parent
7011a8f405
commit
3ca5f21774
|
@ -1,10 +1,9 @@
|
||||||
from constants import DATASETS
|
from constants import DATASETS
|
||||||
from flask_wtf import FlaskForm
|
from flask_wtf import FlaskForm
|
||||||
from wtforms import SelectField, SubmitField
|
from wtforms import SelectField, SubmitField
|
||||||
from wtforms.validators import DataRequired
|
|
||||||
|
|
||||||
|
|
||||||
# NOTE The choices should be shorter
|
# NOTE The choices should be shorter
|
||||||
class DatasetForm(FlaskForm):
|
class DatasetForm(FlaskForm):
|
||||||
dataset = SelectField(validators=[DataRequired()], choices=DATASETS)
|
dataset = SelectField(choices=DATASETS)
|
||||||
submit = SubmitField("Submit")
|
submit = SubmitField("Submit")
|
||||||
|
|
Loading…
Reference in New Issue