Paul's Programming Notes
Tuesday, April 1, 2014
Override ModelView Class - Flask-Admin
This has an awesome example of how to override your base ModelView:
You would want to do this if you wanted to add something to all of your admin classes. Use cases:
If you wanted to require login by overriding is_accessible for all of your ModelViews.
If you wanted to add an export method to all of your ModelViews.
Share to Twitter
Share to Facebook
Share to Pinterest
Post a Comment
Post Comments (Atom)