Skip to content

Commit

Permalink
newforms-admin: Fixed #6226 -- allow_tags is now correctly honored an…
Browse files Browse the repository at this point in the history
…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
brosner committed Mar 31, 2008
1 parent 8547164 commit de072d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions django/contrib/admin/templatetags/admin_list.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ def items_for_result(cl, result):
# function has an "allow_tags" attribute set to True. # function has an "allow_tags" attribute set to True.
if not allow_tags: if not allow_tags:
result_repr = escape(result_repr) result_repr = escape(result_repr)
else:
result_repr = mark_safe(result_repr)
else: else:
field_val = getattr(result, f.attname) field_val = getattr(result, f.attname)


Expand Down

0 comments on commit de072d8

Please sign in to comment.