Django

Code

Changeset 6705

Show
Ignore:
Timestamp:
11/19/07 19:37:34 (1 year ago)
Author:
mtredinnick
Message:

Fixed #5976 -- Handle auto-escaping correctly for empty columns in admin change
view.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/admin/templatetags/admin_list.py

    r6703 r6705  
    188188                result_repr = escape(field_val) 
    189189        if force_unicode(result_repr) == '': 
    190             result_repr = ' ' 
     190            result_repr = mark_safe(' ') 
    191191        # If list_display_links not defined, add the link tag to the first field 
    192192        if (first and not cl.lookup_opts.admin.list_display_links) or field_name in cl.lookup_opts.admin.list_display_links: