graphPaname/app/forms.py

11 lines
329 B
Python
Raw Normal View History

2020-06-12 22:49:49 +02:00
from constants import DATASETS
from flask_wtf import FlaskForm
from wtforms import SelectField, SubmitField
from wtforms.validators import DataRequired
2020-06-13 18:23:34 +02:00
# NOTE The choices should be shorter
2020-06-12 22:49:49 +02:00
class DatasetForm(FlaskForm):
dataset = SelectField(validators=[DataRequired()], choices=DATASETS)
submit = SubmitField("Submit")