mirror of
https://github.com/django/django.git
synced 2025-07-04 09:49:12 +00:00
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
This commit is contained in:
parent
d0c49bfc60
commit
31e9b26d45
@ -185,7 +185,7 @@ def items_for_result(cl, result):
|
|||||||
else:
|
else:
|
||||||
result_repr = escape(field_val)
|
result_repr = escape(field_val)
|
||||||
if force_unicode(result_repr) == '':
|
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 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:
|
if (first and not cl.list_display_links) or field_name in cl.list_display_links:
|
||||||
table_tag = {True:'th', False:'td'}[first]
|
table_tag = {True:'th', False:'td'}[first]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user