Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#716 closed defect (fixed)

order_type not defined in new-admin django.contrib.admin.templatetags.admin_list

Reported by: Tom Tobin <korpios@…> Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


In the result_headers function of branches/new-admin/django/contrib/admin/templatetags/, order_type is used but undefined on two lines:

                        th_classes.append('sorted %sending' % order_type.lower())
                        new_order_type = {'asc': 'desc', 'desc': 'asc'}[order_type.lower()]

The new-admin /admin/auth/users/ page currently throws the following exception which may be a result of this:

TemplateSyntaxError:   While rendering at admin/change_list, line 15 , caught exception:
  NameError: global name 'order_type' is not defined

Change History (2)

comment:1 Changed 13 years ago by korpios@…

Resolution: fixed
Status: newclosed

Fixed in [1071] by rjwittams.

comment:2 Changed 11 years ago by korpios

Reporter: changed from korpios@… to Tom Tobin <korpios@…>
Note: See TracTickets for help on using tickets.
Back to Top