You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a wtform for both adding and editing an object and I use the queryselectfield for the foreign keys. The queryselectfield always takes the first value in the row. The correct value is actually passed right as far as I understand, it just doesn't take it for some reason.
As u can see in following image, the form takes the first value and it will also overwrite the db if I don't select again the value I wanted in the first place.
The actual correct value arrives to the form though (ID in red):
I use a wtform for both adding and editing an object and I use the queryselectfield for the foreign keys. The queryselectfield always takes the first value in the row. The correct value is actually passed right as far as I understand, it just doesn't take it for some reason.
Model e.g.:
Model Country
View:
Form:
Template:
As u can see in following image, the form takes the first value and it will also overwrite the db if I don't select again the value I wanted in the first place.
The actual correct value arrives to the form though (ID in red):
screenshot of template output
I honestly can't see what I'm doing wrong. Does anyone have a clue?
The text was updated successfully, but these errors were encountered: