Ticket #11695: admin_list.diff

File admin_list.diff, 592 bytes (added by Joshua Russo, 15 years ago)

From \contrib\admin\templatetags

  • admin_list.py

     
    120120
    121121        th_classes = []
    122122        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):
    124124            th_classes.append('sorted %sending' % cl.order_type.lower())
    125125            new_order_type = {'asc': 'desc', 'desc': 'asc'}[cl.order_type.lower()]
    126126
Back to Top