Code

Changes between Version 10 and Version 11 of ListColumns


Ignore:
Timestamp:
10/27/10 23:35:54 (3 years ago)
Author:
alekam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ListColumns

    v10 v11  
    2626 
    2727 * load_filters - list of required template tags libraries. This libraries will be load before apply template filters to output value. Eg.: ['tagging_tags', 'tagging_autocomplete_tags']. 
    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 
     29Note: 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 
     31if 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 
     41For 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. 
    2942 
    3043 * order_field - string with model field name witch will be used to provide order by this column. If it provided for callable functions, its will be called with this field value in first argument instead of current object instance (this feature exists at least at svn rev. 14188 but currently is not documented).