New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List columns, rename columns, etc. #2
Comments
Probably I don't understand question right... Administrative interface is built on top of python classes. If you inherit from existing class, you're inheriting its functionality. So, for example, if you create something like this:
it will be still sqlalchemy adminstrative class. Its just sqlalchemy admin implementation knows that it should look for As for passing customization parameters through the constructor, do something like this::
And then just use your class::
|
Hmmm I think I asked a bad question. For some strange reason my brain was thinking that you coudl only inherit from the BaseModelView class. |
Add tests for csv export and fix python 3 unicode issues
Going through the examples and trying to use some of my apps into it. I was wondering if we could actually make list_columns, rename_columns, etc. more into options instead of customization?
For example, I want to be able to use the normal sqlalchemy interface, but according to the documentation I would need to create a custom interface in order to utilize the list_columns functionality. I would not be able to use the sqlalchemy interface.
As a workaround I made it so that I could pass those customization when I first create the View. Would this be the best way to do it? Or should we come up with some sort of API to do such a thing?
The text was updated successfully, but these errors were encountered: