﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
716	order_type not defined in new-admin django.contrib.admin.templatetags.admin_list	Tom Tobin <korpios@…>	Adrian Holovaty	"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
}}}
"	defect	closed	contrib.admin		normal	fixed			Unreviewed	0	0	0	0	0	0
