Ticket #5977: missing_admin_safestr.diff

File missing_admin_safestr.diff, 739 bytes (added by SmileyChris, 7 years ago)
  • django/contrib/admin/templatetags/admin_list.py

     
    185185            else:
    186186                result_repr = escape(field_val)
    187187        if force_unicode(result_repr) == '':
    188             result_repr = ' '
     188            result_repr = mark_safe(' ')
    189189        # If list_display_links not defined, add the link tag to the first field
    190190        if (first and not cl.lookup_opts.admin.list_display_links) or field_name in cl.lookup_opts.admin.list_display_links:
    191191            table_tag = {True:'th', False:'td'}[first]
Back to Top