flask wtforms QuerySelectFeld form.populate_obj fields not populated and if filled in error translate raised
问题 I am struggling with two problems, 1/ QuerySelectField not populated 2/ Translate error if field is filled in I have an add function and an edit function, I am using "from wtforms_alchemy.fields import QuerySelectField" to allow a choice from one data base model to be available in a drop down list. In the "addboilercircuit" function this works, in the form a drop down list is displayed and I can submit the form. in the "editboilercircuit" function I am using formpopulate_obj all the fields