Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.4.X] Fixed #16309 - Made ModelAdmin.list_filter versionchanged ann…

…otations more specific to the sections that changed; thanks akaihola for the suggestion and patch.

Backport of 7089638 from master
  • Loading branch information...
commit 90fee02feeeed712a05d714d76d8acc07d3ed9a1 1 parent f6159d4
@timgraham timgraham authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 docs/ref/contrib/admin/index.txt
6 docs/ref/contrib/admin/index.txt
@@ -568,8 +568,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:
@@ -593,6 +591,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,
@@ -678,6 +678,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::
Please sign in to comment.
Something went wrong with that request. Please try again.