Author: mtredinnick
Date: 2007-11-19 19:37:34 -0600 (Mon, 19 Nov 2007)
New Revision: 6705

Modified:
   django/trunk/django/contrib/admin/templatetags/admin_list.py
Log:
Fixed #5976 -- Handle auto-escaping correctly for empty columns in admin change
view.


Modified: django/trunk/django/contrib/admin/templatetags/admin_list.py
===================================================================
--- django/trunk/django/contrib/admin/templatetags/admin_list.py        
2007-11-20 01:37:16 UTC (rev 6704)
+++ django/trunk/django/contrib/admin/templatetags/admin_list.py        
2007-11-20 01:37:34 UTC (rev 6705)
@@ -187,7 +187,7 @@
             else:
                 result_repr = escape(field_val)
         if force_unicode(result_repr) == '':
-            result_repr = ' '
+            result_repr = mark_safe(' ')
         # If list_display_links not defined, add the link tag to the first 
field
         if (first and not cl.lookup_opts.admin.list_display_links) or 
field_name in cl.lookup_opts.admin.list_display_links:
             table_tag = {True:'th', False:'td'}[first]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to