Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.3.X] Fixed #15746. Clarified updated list_filter documentation.

Backport of r16010 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@16011 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 05054aba7684c8d5b2bbe4ea0e2aee24ae7deba2 1 parent e5aa2bd
Simon Meers authored April 03, 2011

Showing 1 changed file with 7 additions and 5 deletions. Show diff stats Hide diff stats

  1. 12  docs/ref/contrib/admin/index.txt
12  docs/ref/contrib/admin/index.txt
@@ -531,17 +531,19 @@ subclass::
531 531
             list_display = ('username', 'email', 'first_name', 'last_name', 'is_staff')
532 532
             list_filter = ('is_staff', 'is_superuser')
533 533
 
534  
-    Fields in ``list_filter`` can also span relations using the ``__`` lookup::
535  
-
536  
-        class UserAdminWithLookup(UserAdmin):
537  
-            list_filter = ('groups__name')
538  
-
539 534
     The above code results in an admin change list page that looks like this:
540 535
 
541 536
         .. image:: _images/users_changelist.png
542 537
 
543 538
     (This example also has ``search_fields`` defined. See below.)
544 539
 
  540
+    .. versionadded:: 1.3
  541
+
  542
+    Fields in ``list_filter`` can also span relations using the ``__`` lookup::
  543
+
  544
+        class UserAdminWithLookup(UserAdmin):
  545
+            list_filter = ('groups__name')
  546
+
545 547
 .. attribute:: ModelAdmin.list_per_page
546 548
 
547 549
     Set ``list_per_page`` to control how many items appear on each paginated

0 notes on commit 05054ab

Please sign in to comment.
Something went wrong with that request. Please try again.