Django

Code

Ticket #4544: 4544_list_filter.diff

File 4544_list_filter.diff, 0.7 kB (added by Matt Croydon, 1 year ago)

Documentation patch for list_filter to add two field types mentioned in ticket

  • docs/model-api.txt

    old new  
    14061406 
    14071407Set ``list_filter`` to activate filters in the right sidebar of the change list 
    14081408page 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``. 
     1409field should be either a ``BooleanField``, ``CharField``, ``DateField``,  
     1410``DateTimeField``, ``IntegerField`` or ``ForeignKey``. 
    14111411 
    14121412This example, taken from the ``django.contrib.auth.models.User`` model, shows 
    14131413how both ``list_display`` and ``list_filter`` work::