Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #6015 -- Fixed a CSS escaping issue for admin's edit-inline.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6720 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2d0d6620e617bbfa16fd411730a9f4d37b30f856 1 parent 8f70eb5
Malcolm Tredinnick authored November 28, 2007
2  django/contrib/admin/templatetags/admin_modify.py
@@ -118,7 +118,7 @@ def needs_header(self):
118 118
         return not isinstance(self.field, models.AutoField)
119 119
 
120 120
     def header_class_attribute(self):
121  
-        return self.field.blank and ' class="optional"' or ''
  121
+        return self.field.blank and mark_safe(' class="optional"') or ''
122 122
 
123 123
     def use_raw_id_admin(self):
124 124
         return isinstance(self.field.rel, (models.ManyToOneRel, models.ManyToManyRel)) \

0 notes on commit 2d0d662

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