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 managed to generate forms by overriding the form generation of a ModelView.
But before that, I could update my foreign keys with a dropdown on the relationship. I managed to include the foreign keys with the option but I need to manually set their values.
I did not find a solution for a generic based relationship generation under the documentation.
In addition, I had to rewrite create_model for a special case:
I have a nullable foreign_key of type UUIDType, if the field is not filled in the form, an empty string is sent. This empty string is then parsed by python's uuid.UUID and raise a ValueError exception.
Hi,
I managed to generate forms by overriding the form generation of a ModelView.
But before that, I could update my foreign keys with a dropdown on the relationship. I managed to include the foreign keys with the option but I need to manually set their values.
I did not find a solution for a generic based relationship generation under the documentation.
sample of my admin/views.py
The text was updated successfully, but these errors were encountered: