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