From de072d889d1372ef3474ec44dc953cb4af501e06 Mon Sep 17 00:00:00 2001 From: Brian Rosner Date: Mon, 31 Mar 2008 21:04:54 +0000 Subject: [PATCH] newforms-admin: Fixed #6226 -- allow_tags is now correctly honored and 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 --- django/contrib/admin/templatetags/admin_list.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/django/contrib/admin/templatetags/admin_list.py b/django/contrib/admin/templatetags/admin_list.py index 711ab9bd91..87fad70ec3 100644 --- a/django/contrib/admin/templatetags/admin_list.py +++ b/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)