Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #5976 -- Handle auto-escaping correctly for empty columns in ad…

…min change

view.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6705 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ab69710de4abde6bbfa382cdb7ab27e5082b6a5d 1 parent 116b9d0
Malcolm Tredinnick authored November 20, 2007
2  django/contrib/admin/templatetags/admin_list.py
@@ -187,7 +187,7 @@ def items_for_result(cl, result):
187 187
             else:
188 188
                 result_repr = escape(field_val)
189 189
         if force_unicode(result_repr) == '':
190  
-            result_repr = ' '
  190
+            result_repr = mark_safe(' ')
191 191
         # If list_display_links not defined, add the link tag to the first field
192 192
         if (first and not cl.lookup_opts.admin.list_display_links) or field_name in cl.lookup_opts.admin.list_display_links:
193 193
             table_tag = {True:'th', False:'td'}[first]

0 notes on commit ab69710

Please sign in to comment.
Something went wrong with that request. Please try again.