Changes between Version 3 and Version 4 of ListColumns
- Timestamp:
- Oct 27, 2010, 1:15:00 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ListColumns
v3 v4 2 2 == Admin change list view customization with ListColumn == 3 3 4 Related ticket: #8054 Move method properties for admin list customi sation to ModelAdmin4 Related ticket: #8054 Move method properties for admin list customization to ModelAdmin 5 5 6 6 This ticket adds: 7 7 8 * bea tifullAPI to admin change list customization8 * beautifully API to admin change list customization 9 9 10 10 * ability to customize and localize 3rd-party application without fork it … … 19 19 Arguments: 20 20 21 * field_name - cal able 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. 22 22 23 23 Keyword arguments: … … 25 25 * header - change list column header. If not provided standard algorithm to header column calculation will be used. 26 26 27 * filter - template filters will be ap llied 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"'. 28 28 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_autocompl ite_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'] 30 30 31 31 * 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). 32 32 33 * value_map - choices used to mapping display value. This can redefine choices from model field for shown in admin change list.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. 34 34 35 35 ==== Example ====