Ticket #6116: admin_list__result_headers__mark_safe.diff
File admin_list__result_headers__mark_safe.diff, 731 bytes (added by , 17 years ago) |
---|
-
django/contrib/admin/templatetags/admin_list.py
114 114 yield {"text": header, 115 115 "sortable": True, 116 116 "url": cl.get_query_string({ORDER_VAR: i, ORDER_TYPE_VAR: new_order_type}), 117 "class_attrib": (th_classes and ' class="%s"' % ' '.join(th_classes) or '')}117 "class_attrib": mark_safe(th_classes and ' class="%s"' % ' '.join(th_classes) or '')} 118 118 119 119 def _boolean_icon(field_val): 120 120 BOOLEAN_MAPPING = {True: 'yes', False: 'no', None: 'unknown'}