Permalink
Browse files

newforms-admin: Fixed #6226 -- allow_tags is now correctly honored an…

…d marks the data as safe. Thanks, michelts and jgelens.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7394 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 8547164 commit de072d889d1372ef3474ec44dc953cb4af501e06 @brosner brosner committed Mar 31, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 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)

0 comments on commit de072d8

Please sign in to comment.