from flask_wtf import FlaskForm from wtforms import DateTimeField, DecimalField, SubmitField from wtforms.validators import DataRequired class DownloadForm(FlaskForm): date = DateTimeField('Date', validators=[DataRequired()]) length = DecimalField('Length', validators=[DataRequired()]) submit = SubmitField('Download')