Skip to content
Browse files

Fixed #8041 -- Modified media rendering to return safe strings. Thank…

…s to Daniel Pope <> for the report.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 2e08591 commit 4ecc5f490a5c8a72dfab7b1fd00bdcfe782557ea @freakboy3742 freakboy3742 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/forms/
2 django/forms/
@@ -50,7 +50,7 @@ def __unicode__(self):
return self.render()
def render(self):
- return u'\n'.join(chain(*[getattr(self, 'render_' + name)() for name in MEDIA_TYPES]))
+ return mark_safe(u'\n'.join(chain(*[getattr(self, 'render_' + name)() for name in MEDIA_TYPES])))
def render_js(self):
return [u'<script type="text/javascript" src="%s"></script>' % self.absolute_path(path) for path in self._js]

0 comments on commit 4ecc5f4

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