Author: jkocherhans
Date: 2007-12-01 10:39:28 -0600 (Sat, 01 Dec 2007)
New Revision: 6784

Modified:
   
django/branches/newforms-admin/django/contrib/admin/templatetags/admin_list.py
Log:
newforms-admin: Fixed #6078. Blank spaces in the chnage list are now marked 
safe. Thanks toke and Karen Tracy.


Modified: 
django/branches/newforms-admin/django/contrib/admin/templatetags/admin_list.py
===================================================================
--- 
django/branches/newforms-admin/django/contrib/admin/templatetags/admin_list.py  
    2007-11-30 23:48:35 UTC (rev 6783)
+++ 
django/branches/newforms-admin/django/contrib/admin/templatetags/admin_list.py  
    2007-12-01 16:39:28 UTC (rev 6784)
@@ -185,7 +185,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.list_display_links) or field_name in 
cl.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