Commit 959a1d22 authored by Florian Hahn's avatar Florian Hahn

Fix base class in sqla ModelView example

parent 07de12fc
...@@ -56,12 +56,12 @@ class ModelView(BaseModelView): ...@@ -56,12 +56,12 @@ class ModelView(BaseModelView):
For example:: For example::
class PostAdmin(ModelAdmin): class PostAdmin(ModelView):
column_select_related_list = ('user', 'city') column_select_related_list = ('user', 'city')
You can also use properties:: You can also use properties::
class PostAdmin(ModelAdmin): class PostAdmin(ModelView):
column_select_related_list = (Post.user, Post.city) column_select_related_list = (Post.user, Post.city)
Please refer to the `subqueryload` on list of possible values. Please refer to the `subqueryload` on list of possible values.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment