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'm able to generate models on the fly based on the parameters in my request, but I'm running into issues registering the newly created model with the admin panel; mainly because the admin is instantiated at the start of the web-server, and the models are generated on a request-by-request basis.
Below is the code I'm using to generate the models on the fly:
werkzeug.routing.BuildError
BuildError: ('admin.<class name here>_index', {}, None)
I made sure that admin._registry contains my newly created model.__class__ and Admin.__class__ as a (key, value) pair. Any ideas on how to go about this or what I need to modify to get this to work? Ideally, I want to see the models that are created on-the-fly reflected in my admin panel.
Thanks.
The text was updated successfully, but these errors were encountered:
I'm able to generate models on the fly based on the parameters in my request, but I'm running into issues registering the newly created model with the admin panel; mainly because the admin is instantiated at the start of the web-server, and the models are generated on a request-by-request basis.
Below is the code I'm using to generate the models on the fly:
The error I'm getting is
I made sure that
admin._registry
contains my newly createdmodel.__class__
andAdmin.__class__
as a (key, value) pair. Any ideas on how to go about this or what I need to modify to get this to work? Ideally, I want to see the models that are created on-the-fly reflected in my admin panel.Thanks.
The text was updated successfully, but these errors were encountered: