Changes between Version 6 and Version 7 of ListColumns


Ignore:
Timestamp:
10/27/2010 07:36:18 AM (5 years ago)
Author:
alekam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ListColumns

    v6 v7  
    1 
    21== Admin change list view customization with ListColumn ==
    32
     
    7877        return ...
    7978
     79    bar_column = admin.ListColumn('get_bar', filter='safe', order_field='bar')
     80
    8081    list_display = [
     82        bar_column,
    8183        admin.ListColumn('foo', header='Foo Description', filter='boolean_icon'),
    82         admin.ListColumn('get_bar', filter='safe', order_field='bar'),
    8384        'baz',
    8485        'bonk',
     
    8687        admin.ListColumn('formated_bonk', order_field="bonk")
    8788    ]
     89    list_display_link = [bar_column, 'bonk']
    8890
    8991}}}
Back to Top