Replies: 1 comment
-
Since I could not figure out how to get at the existing form state, I ended up recreating the select options list from scratch: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have users that can belong to orgs.
On the new user page it renders a QuerySelectField to show a list of orgs. They are ordered by org.id, but I would like them ordered by org.name
I have tried overwriting the data/choices via the form_args option, but that does not give me access to the existing choices first put in the field.
Another option is to change the default sort order of the orgs model but I am in sqlalchemy 1.x which makes this tricky since mapper_args is not supported.
Beta Was this translation helpful? Give feedback.
All reactions