Ticket #11695: admin_list.diff
File admin_list.diff, 592 bytes (added by , 15 years ago) |
---|
-
admin_list.py
120 120 121 121 th_classes = [] 122 122 new_order_type = 'asc' 123 if field_name == cl.order_field or admin_order_field == cl.order_field:123 if cl.order_field != None and (field_name == cl.order_field or admin_order_field == cl.order_field): 124 124 th_classes.append('sorted %sending' % cl.order_type.lower()) 125 125 new_order_type = {'asc': 'desc', 'desc': 'asc'}[cl.order_type.lower()] 126 126