diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index c0ff3c6..37849e4 100644
|
a
|
b
|
subclass::
|
| 553 | 553 | |
| 554 | 554 | .. attribute:: ModelAdmin.list_filter |
| 555 | 555 | |
| 556 | | .. versionchanged:: 1.4 |
| 557 | | |
| 558 | 556 | Set ``list_filter`` to activate filters in the right sidebar of the change |
| 559 | 557 | list page of the admin, as illustrated in the following screenshot: |
| 560 | 558 | |
| … |
… |
subclass::
|
| 578 | 576 | class PersonAdmin(UserAdmin): |
| 579 | 577 | list_filter = ('company__name',) |
| 580 | 578 | |
| 581 | | * a class inheriting from :mod:`django.contrib.admin.SimpleListFilter`, |
| | 579 | * .. versionadded:: 1.4 |
| | 580 | |
| | 581 | a class inheriting from :mod:`django.contrib.admin.SimpleListFilter`, |
| 582 | 582 | which you need to provide the ``title`` and ``parameter_name`` |
| 583 | 583 | attributes to and override the ``lookups`` and ``queryset`` methods, |
| 584 | 584 | e.g.:: |
| … |
… |
subclass::
|
| 592 | 592 | title = _('decade born') |
| 593 | 593 | |
| 594 | 594 | # Parameter for the filter that will be used in the URL query. |
| 595 | | parameter_name = 'decade' |
| | 595 | t parameter_name = 'decade' |
| 596 | 596 | |
| 597 | 597 | def lookups(self, request, model_admin): |
| 598 | 598 | """ |
| … |
… |
subclass::
|
| 661 | 661 | birthday__year__lte=1999).exists(): |
| 662 | 662 | yield ('90s', _('in the nineties')) |
| 663 | 663 | |
| 664 | | * a tuple, where the first element is a field name and the second |
| | 664 | * .. versionadded:: 1.4 |
| | 665 | |
| | 666 | a tuple, where the first element is a field name and the second |
| 665 | 667 | element is a class inheriting from |
| 666 | 668 | :mod:`django.contrib.admin.FieldListFilter`, for example:: |
| 667 | 669 | |