Ticket #6116: admin_list__result_headers__mark_safe.diff

File admin_list__result_headers__mark_safe.diff, 731 bytes (added by zlobnyi antisvin <antisvin@…>, 17 years ago)

Add mark_safe function call

  • django/contrib/admin/templatetags/admin_list.py

     
    114114        yield {"text": header,
    115115               "sortable": True,
    116116               "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 '')}
    118118
    119119def _boolean_icon(field_val):
    120120    BOOLEAN_MAPPING = {True: 'yes', False: 'no', None: 'unknown'}
Back to Top