Author: DrMeers
Date: 2011-04-03 16:08:48 -0700 (Sun, 03 Apr 2011)
New Revision: 16010
Modified:
django/trunk/docs/ref/contrib/admin/index.txt
Log:
Fixed #15746. Clarified updated list_filter documentation.
Modified: django/trunk/docs/ref/contrib/admin/index.txt
===================================================================
--- django/trunk/docs/ref/contrib/admin/index.txt 2011-04-03 00:11:29 UTC
(rev 16009)
+++ django/trunk/docs/ref/contrib/admin/index.txt 2011-04-03 23:08:48 UTC
(rev 16010)
@@ -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.