graphPaname/app/forms.py

10 lines
292 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
class DatasetForm(FlaskForm):
dataset = SelectField(validators=[DataRequired()], choices=DATASETS)
submit = SubmitField("Submit")