Code

Changes between Version 3 and Version 4 of ListColumns


Ignore:
Timestamp:
10/26/10 23:15:00 (3 years ago)
Author:
alekam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ListColumns

    v3 v4  
    22== Admin change list view customization with ListColumn == 
    33 
    4 Related ticket: #8054 Move method properties for admin list customisation to ModelAdmin 
     4Related ticket: #8054 Move method properties for admin list customization to ModelAdmin 
    55 
    66This ticket adds: 
    77 
    8  * beatifull API to admin change list customization 
     8 * beautifully API to admin change list customization 
    99 
    1010 * ability to customize and localize 3rd-party application without fork it 
     
    1919Arguments: 
    2020 
    21  * field_name - calable function or string with model field, Model method name or current ModelAdmin method name. 
     21 * field_name - callable function or string with model field, Model method name or current ModelAdmin method name. 
    2222 
    2323Keyword arguments: 
     
    2525 * header - change list column header. If not provided standard algorithm to header column calculation will be used. 
    2626 
    27  * filter - template filters will be apllied to value on output. It is string like this 'filter1|filter2:"arg"'. 
     27 * filter - template filters will be applied to value on output. It is string like this 'filter1|filter2:"arg"'. 
    2828 
    29  * load_filters - list of required template tags libraries. This libraries will be load before apply template filters to output value. Eg.: ['tagging_tags', 'tagging_autocomplite_tags'] 
     29 * 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'] 
    3030 
    3131 * 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). 
    3232 
    33  * value_map - choices used to mapping display value. This can redefine choices from model field for shown in admin changelist. 
     33 * value_map - choices used to mapping display value. This can redefine choices from model field for shown in admin change list. If filter argument is provided, this is applied before template filters. 
    3434 
    3535==== Example ====