Skip to content

Commit c2dd48f

Browse files
committed
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
1 parent 16dcff4 commit c2dd48f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

django/contrib/admin/templatetags/admin_list.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ def result_headers(cl):
110110
# It is a non-field, but perhaps one that is sortable
111111
admin_order_field = getattr(attr, "admin_order_field", None)
112112
if not admin_order_field:
113-
yield {"text": header}
113+
yield {
114+
"text": header,
115+
"class_attrib": ""
116+
}
114117
continue
115118

116119
# So this _is_ a sortable non-field. Go to the yield

0 commit comments

Comments
 (0)