Skip to content

Commit

Permalink
Fixed #6015 -- Fixed a CSS escaping issue for admin's edit-inline.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6720 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Nov 28, 2007
1 parent 8f70eb5 commit 2d0d662
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/admin/templatetags/admin_modify.py
Expand Up @@ -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)) \
Expand Down

0 comments on commit 2d0d662

Please sign in to comment.