wtforms SelectField with dynamic choices always returns “none” for data
问题 I am new to wtforms. I have to provide user with list of fruits and cost of each fruit as shown below, Total number of fruits are dynamically generated and each fruit prices is also dynamically generated. Below is my declaration, from flask.ext.wtf import Form class SelectForm(Form): def __init__(self, csrf_enabled=False, *args, **kwargs): super(SelectForm, self).__init__(csrf_enabled=csrf_enabled, *args, **kwargs) fruits_list = wtforms.FieldList( wtforms.SelectField('fruits', validators =