summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Kocherhans <joseph@jkocherhans.com>2007-12-01 16:39:28 +0000
committerJoseph Kocherhans <joseph@jkocherhans.com>2007-12-01 16:39:28 +0000
commit31e9b26d45f3cf262914a2c1f34fdb78c8161a81 (patch)
tree249916303feecb8e50e96b4e1bed629e6b5aad11
parentd0c49bfc60ce1f33f1bb1908482a0ee4e99d6525 (diff)
newforms-admin: Fixed #6078. Blank spaces in the chnage list are now marked safe. Thanks toke and Karen Tracy.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6784 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/admin/templatetags/admin_list.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/templatetags/admin_list.py b/django/contrib/admin/templatetags/admin_list.py
index 2737a27972..2db43270d9 100644
--- a/django/contrib/admin/templatetags/admin_list.py
+++ b/django/contrib/admin/templatetags/admin_list.py
@@ -185,7 +185,7 @@ def items_for_result(cl, result):
else:
result_repr = escape(field_val)
if force_unicode(result_repr) == '':
- result_repr = '&nbsp;'
+ result_repr = mark_safe('&nbsp;')
# 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]