Author: mtredinnick
Date: 2007-11-19 19:37:01 -0600 (Mon, 19 Nov 2007)
New Revision: 6703
Modified:
django/trunk/django/contrib/admin/templatetags/admin_list.py
Log:
Fixed #5973 -- Fixed inadvertent allow_tags=True auto-escaping problem.
Modified: django/trunk/django/contrib/admin/templatetags/admin_list.py
===================================================================
--- django/trunk/django/contrib/admin/templatetags/admin_list.py
2007-11-19 06:10:23 UTC (rev 6702)
+++ django/trunk/django/contrib/admin/templatetags/admin_list.py
2007-11-20 01:37:01 UTC (rev 6703)
@@ -148,6 +148,8 @@
# 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)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---