Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 2d0d6620e617bbfa16fd411730a9f4d37b30f856 1 parent 8f70eb5
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admin/templatetags/
2  django/contrib/admin/templatetags/
@@ -118,7 +118,7 @@ def needs_header(self):
return not isinstance(self.field, models.AutoField)
def header_class_attribute(self):
- return self.field.blank and ' class="optional"' or ''
+ return self.field.blank and mark_safe(' class="optional"') or ''
def use_raw_id_admin(self):
return isinstance(self.field.rel, (models.ManyToOneRel, models.ManyToManyRel)) \
Please sign in to comment.
Something went wrong with that request. Please try again.