Changes between Version 6 and Version 7 of ListColumns
- Timestamp:
- Oct 27, 2010, 7:36:18 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ListColumns
v6 v7 1 2 1 == Admin change list view customization with ListColumn == 3 2 … … 78 77 return ... 79 78 79 bar_column = admin.ListColumn('get_bar', filter='safe', order_field='bar') 80 80 81 list_display = [ 82 bar_column, 81 83 admin.ListColumn('foo', header='Foo Description', filter='boolean_icon'), 82 admin.ListColumn('get_bar', filter='safe', order_field='bar'),83 84 'baz', 84 85 'bonk', … … 86 87 admin.ListColumn('formated_bonk', order_field="bonk") 87 88 ] 89 list_display_link = [bar_column, 'bonk'] 88 90 89 91 }}}