Replies: 2 comments 2 replies
-
Hey, I think this might be very common and it should be possible, it's how the sqladmin is working. But I'll take a look later to see how this can be done and maybe add it to the docs as it can be very common. |
Beta Was this translation helpful? Give feedback.
0 replies
-
BTW I think your use-case is that you want to always show all columns in list page, I think that's what flask-admin does and I didn't. Maybe it's better to stick to what they have done. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When defining various Admin classes, my code is quite WET:
I was hoping to make it DRY through some kind of inheritance:
It is not obvious to me how (or even if)
MixinAllColumns
could get access tomodel
.Does anyone have any ideas?
Nota bene: omitting
column_details_list
andform_columns
(I believe they default to all the columns anyway) results in an error:...hence why I am manually defining them.
This is likely a general Python (metaclass) question and less related to sqladmin itself. Otherwise, great work on sqladmin!
Beta Was this translation helpful? Give feedback.
All reactions