Skip to content

Commit

Permalink
Fixed #16309 - Made ModelAdmin.list_filter versionchanged annotations…
Browse files Browse the repository at this point in the history
… more specific to the sections that changed; thanks akaihola for the suggestion and patch.
  • Loading branch information
timgraham committed Aug 31, 2012
1 parent 44f541a commit 7089638
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/ref/contrib/admin/index.txt
Expand Up @@ -561,8 +561,6 @@ subclass::

.. attribute:: ModelAdmin.list_filter

.. versionchanged:: 1.4

Set ``list_filter`` to activate filters in the right sidebar of the change
list page of the admin, as illustrated in the following screenshot:

Expand All @@ -586,6 +584,8 @@ subclass::
class PersonAdmin(UserAdmin):
list_filter = ('company__name',)

.. versionadded:: 1.4

* a class inheriting from :mod:`django.contrib.admin.SimpleListFilter`,
which you need to provide the ``title`` and ``parameter_name``
attributes to and override the ``lookups`` and ``queryset`` methods,
Expand Down Expand Up @@ -671,6 +671,8 @@ subclass::
birthday__lte=date(1999, 12, 31)).exists():
yield ('90s', _('in the nineties'))

.. versionadded:: 1.4

* a tuple, where the first element is a field name and the second
element is a class inheriting from
:mod:`django.contrib.admin.FieldListFilter`, for example::
Expand Down

0 comments on commit 7089638

Please sign in to comment.