Code

Ticket #16309: 16309-documentation-admin-list_filter.1.diff

File 16309-documentation-admin-list_filter.1.diff, 688 bytes (added by akaihola, 3 years ago)

Mark "SimpleListFilter" as "new in Django 1.4"

Line 
1diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
2index c0ff3c6..ed42953 100644
3--- a/docs/ref/contrib/admin/index.txt
4+++ b/docs/ref/contrib/admin/index.txt
5@@ -578,7 +578,9 @@ subclass::
6               class PersonAdmin(UserAdmin):
7                   list_filter = ('company__name',)
8 
9-        * a class inheriting from :mod:`django.contrib.admin.SimpleListFilter`,
10+        * .. versionadded:: 1.4
11+
12+          a class inheriting from :mod:`django.contrib.admin.SimpleListFilter`,
13           which you need to provide the ``title`` and ``parameter_name``
14           attributes to and override the ``lookups`` and ``queryset`` methods,
15           e.g.::