Fixed #4544 -- Updated docs for allowed field types in an admin list_filter. Thanks to Matt Croydon.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6179 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2007-09-14 08:29:51 +00:00
parent 518bc15b21
commit bc21612012
1 changed files with 2 additions and 2 deletions

View File

@ -1550,8 +1550,8 @@ Finally, note that in order to use ``list_display_links``, you must define
Set ``list_filter`` to activate filters in the right sidebar of the change list Set ``list_filter`` to activate filters in the right sidebar of the change list
page of the admin. This should be a list of field names, and each specified page of the admin. This should be a list of field names, and each specified
field should be either a ``BooleanField``, ``DateField``, ``DateTimeField`` field should be either a ``BooleanField``, ``CharField``, ``DateField``,
or ``ForeignKey``. ``DateTimeField``, ``IntegerField`` or ``ForeignKey``.
This example, taken from the ``django.contrib.auth.models.User`` model, shows This example, taken from the ``django.contrib.auth.models.User`` model, shows
how both ``list_display`` and ``list_filter`` work:: how both ``list_display`` and ``list_filter`` work::