Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Malcolm Tredinnick authored November 20, 2007
2  django/contrib/admin/templatetags/admin_list.py
@@ -148,6 +148,8 @@ def items_for_result(cl, result):
148 148
                 # function has an "allow_tags" attribute set to True.
149 149
                 if not allow_tags:
150 150
                     result_repr = escape(result_repr)
  151
+                else:
  152
+                    result_repr = mark_safe(result_repr)
151 153
         else:
152 154
             field_val = getattr(result, f.attname)
153 155
 

0 notes on commit b1d4029

Please sign in to comment.
Something went wrong with that request. Please try again.