Opened 19 years ago

Closed 19 years ago

Last modified 17 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: no UI/UX: no

Description

In the result_headers function of branches/new-admin/django/contrib/admin/templatetags/admin_list.py, 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 by korpios@…, 19 years ago

Resolution: fixed
Status: newclosed

Fixed in [1071] by rjwittams.

comment:2 by korpios, 17 years ago

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