Replies: 1 comment
-
In case other people have a similar issue, this is my workaround: class UsersAdmin(model=Users):
...
form_args = dict(
organization=dict(),
)
async def scaffold_form(self) -> Type[Form]:
# dynamically populate select lists that come from the DB
self.form_args['organization']['data'] = get_sorted_org_choices() |
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 a form that I want to show different values throughout the use of the app. There is a list that is not static.
Here is example code as it is now:
The issue is when the app starts, it calls get_orgs() once. But I want it called every time the UsersAdmin edit/update form is shown. This way if I add an organization and then add a user, the user forms should list the new organization.
Beta Was this translation helpful? Give feedback.
All reactions