Fix a bug in admin that messes up column headers if
TEMPLATE_STRING_IF_INVALID is turned on (see https://code.djangoproject.com/ticket/12136 and http://groups.google.com/group/django-developers/browse_thread/thread/a93f09c46f15d20d) - Legacy-Id: 3382
This commit is contained in:
parent
16dcff4a92
commit
c2dd48ff35
|
@ -110,7 +110,10 @@ def result_headers(cl):
|
|||
# It is a non-field, but perhaps one that is sortable
|
||||
admin_order_field = getattr(attr, "admin_order_field", None)
|
||||
if not admin_order_field:
|
||||
yield {"text": header}
|
||||
yield {
|
||||
"text": header,
|
||||
"class_attrib": ""
|
||||
}
|
||||
continue
|
||||
|
||||
# So this _is_ a sortable non-field. Go to the yield
|
||||
|
|
Loading…
Reference in a new issue