#716 closed defect (fixed)
order_type not defined in new-admin django.contrib.admin.templatetags.admin_list
Reported by: | 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 , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 17 years ago
Reporter: | changed from | to
---|
Note:
See TracTickets
for help on using tickets.
Fixed in [1071] by rjwittams.