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

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

Mark "SimpleListFilter" as "new in Django 1.4"

  • docs/ref/contrib/admin/index.txt

    diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
    index c0ff3c6..ed42953 100644
    a b subclass:: 
    578578              class PersonAdmin(UserAdmin):
    579579                  list_filter = ('company__name',)
    580580
    581         * a class inheriting from :mod:`django.contrib.admin.SimpleListFilter`,
     581        * .. versionadded:: 1.4
     582
     583          a class inheriting from :mod:`django.contrib.admin.SimpleListFilter`,
    582584          which you need to provide the ``title`` and ``parameter_name``
    583585          attributes to and override the ``lookups`` and ``queryset`` methods,
    584586          e.g.::
Back to Top