Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #5973 -- Fixed inadvertent allow_tags=True auto-escaping problem.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6703 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b1d40295bc9a176973903a242a35caeb987b4bfc 1 parent 6522e06
@malcolmt malcolmt authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  django/contrib/admin/templatetags/admin_list.py
View
2  django/contrib/admin/templatetags/admin_list.py
@@ -148,6 +148,8 @@ def items_for_result(cl, result):
# function has an "allow_tags" attribute set to True.
if not allow_tags:
result_repr = escape(result_repr)
+ else:
+ result_repr = mark_safe(result_repr)
else:
field_val = getattr(result, f.attname)
Please sign in to comment.
Something went wrong with that request. Please try again.