28 | | Note: In admin area you can use "boolean_icon" template filter (it is provided by "admin_list" template library, this used to render admin change list). It is useful to display values of boolean fields or callables. It show green or red mark instead of True or False values. It is applied for boolean model fields by default (but not for callables) on render admin change list. |
| 28 | |
| 29 | Note: In admin area you can use "boolean_icon" template filter (it is provided by "admin_list" template library, this used to render admin change list). It is useful to display values of boolean fields or callables. It show green or red mark instead of True or False values. It is applied for boolean model fields by default (but not for callables) on render admin change list if no any filters is specified. |
| 30 | |
| 31 | if no any filters is specified in filter attribute, for some model fields will be applied default filters according to table below: |
| 32 | |
| 33 | ||model field||applied filter|| |
| 34 | ||BooleanField||boolean_icon|| |
| 35 | ||NullBooleanField||boolean_icon|| |
| 36 | ||DateTimeField||date:"DATETIME_FORMAT"|| |
| 37 | ||DateField||date:"DATE_FORMAT"|| |
| 38 | ||TimeField||time:"TIME_FORMAT"|| |
| 39 | ||DecimalField||floatformat:%d|| |
| 40 | |
| 41 | For other model fields default filter is not specified and no any filter will be applied automatic if filter attribute isn't provided in the ListColumn instance. |