Ticket #6078: 6078.patch

File 6078.patch, 703 bytes (added by Thomas Kerpe, 17 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.list_display_links) or field_name in cl.list_display_links:
    191191            table_tag = {True:'th', False:'td'}[first]
Back to Top