Add a keyword argument called validate_choice to SelectField's __init__ method that defaults to True. If it is False, WTForms will not check that the selected option is in the field's choices attribute.
The text was updated successfully, but these errors were encountered:
I just ran into exactly the same issue.
in my form class i declare a SelectField like this: site = SelectField('site', choices=)
on submit i get 'Form validation failed', 'site: Not a valid choice'