Put in order · Python course · Module 5: Flask and Web Apps
Form definition
Arrange the definition of a form class in Flask-WTF:
Items to put in order
- population = IntegerField('Population')
- class SpeciesForm(FlaskForm):
- name = StringField('Name', validators=[DataRequired()])
- submit = SubmitField('Save')
You can check the correct answer by solving this task in the CodeWorlds game.