Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #6116: mark-safe the admin changelist table class. Thanks, zlob…

…nyi antisvin.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6888 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 76dd53ac08a1541aa4b28c8cf28772f491066b3c 1 parent acfff05
Jacob Kaplan-Moss jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admin/templatetags/admin_list.py
2  django/contrib/admin/templatetags/admin_list.py
View
@@ -114,7 +114,7 @@ def result_headers(cl):
yield {"text": header,
"sortable": True,
"url": cl.get_query_string({ORDER_VAR: i, ORDER_TYPE_VAR: new_order_type}),
- "class_attrib": (th_classes and ' class="%s"' % ' '.join(th_classes) or '')}
+ "class_attrib": mark_safe(th_classes and ' class="%s"' % ' '.join(th_classes) or '')}
def _boolean_icon(field_val):
BOOLEAN_MAPPING = {True: 'yes', False: 'no', None: 'unknown'}
Please sign in to comment.
Something went wrong with that request. Please try again.