Ticket #4544: 4544_list_filter.diff
| File 4544_list_filter.diff, 0.7 kB (added by Matt Croydon, 1 year ago) |
|---|
-
docs/model-api.txt
old new 1406 1406 1407 1407 Set ``list_filter`` to activate filters in the right sidebar of the change list 1408 1408 page of the admin. This should be a list of field names, and each specified 1409 field should be either a ``BooleanField``, `` DateField``, ``DateTimeField``1410 or ``ForeignKey``.1409 field should be either a ``BooleanField``, ``CharField``, ``DateField``, 1410 ``DateTimeField``, ``IntegerField`` or ``ForeignKey``. 1411 1411 1412 1412 This example, taken from the ``django.contrib.auth.models.User`` model, shows 1413 1413 how both ``list_display`` and ``list_filter`` work::
