Need to populate the choices of the SelectField (WTF Form) using a function. I do not want to add the choices data in the SelectField itself.
class TestForm(FlaskForm):
dropdown = SelectField(choices=[])
def form_overrided_method(self):
self.dropdown.choices = [('A', 'A')]