Opened 10 years ago

Closed 10 years ago

Last modified 8 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
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:

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 Changed 10 years ago by korpios@…

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [1071] by rjwittams.

comment:2 Changed 8 years ago by korpios

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