diff options
| author | Simon Meers <simon@simonmeers.com> | 2011-04-03 23:08:48 +0000 |
|---|---|---|
| committer | Simon Meers <simon@simonmeers.com> | 2011-04-03 23:08:48 +0000 |
| commit | e3018993921b87ebdf65558519c6530141fc327c (patch) | |
| tree | 650f2a1afec91cb5a761794947e01d8f6fc93f0c /docs | |
| parent | fd309996df3bbfd14aff6aee293582cc86f8fccc (diff) | |
Fixed #15746. Clarified updated list_filter documentation.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16010 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index c28dc8b7b3..cd6ff31cfc 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -531,17 +531,19 @@ subclass:: list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff') list_filter = ('is_staff', 'is_superuser') - Fields in ``list_filter`` can also span relations using the ``__`` lookup:: - - class UserAdminWithLookup(UserAdmin): - list_filter = ('groups__name') - The above code results in an admin change list page that looks like this: .. image:: _images/users_changelist.png (This example also has ``search_fields`` defined. See below.) + .. versionadded:: 1.3 + + Fields in ``list_filter`` can also span relations using the ``__`` lookup:: + + class UserAdminWithLookup(UserAdmin): + list_filter = ('groups__name') + .. attribute:: ModelAdmin.list_per_page Set ``list_per_page`` to control how many items appear on each paginated |
