Author: DrMeers
Date: 2011-04-03 16:09:39 -0700 (Sun, 03 Apr 2011)
New Revision: 16011
Modified:
django/branches/releases/1.3.X/docs/ref/contrib/admin/index.txt
Log:
[1.3.X] Fixed #15746. Clarified updated list_filter documentation.
Backport of r16010 from trunk.
Modified: django/branches/releases/1.3.X/docs/ref/contrib/admin/index.txt
===================================================================
--- django/branches/releases/1.3.X/docs/ref/contrib/admin/index.txt
2011-04-03 23:08:48 UTC (rev 16010)
+++ django/branches/releases/1.3.X/docs/ref/contrib/admin/index.txt
2011-04-03 23:09:39 UTC (rev 16011)
@@ -531,17 +531,19 @@
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
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.