sqladmin model view for polymorphic models. #808
Unanswered
kahngjoonkoh
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have created a polymorphic data model to ensure data normalization as below.
And to view this on sqladmin modelview, I have implemented the following
The following output I get is
It is possible to view the model and its base model together on the admin panel. However, it does not work when trying to create data for this model.
However, though against common programming practice, I commented out that bit of code
assert len(prop.columns) == 1, "Multiple-column properties not supported"
and now everything works just as expected.How significant is this line of code for the rest of the codebase?
Beta Was this translation helpful? Give feedback.
All reactions