Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…s to Daniel Pope <dan@mauveinternet.co.uk> for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8285 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4ecc5f490a5c8a72dfab7b1fd00bdcfe782557ea 1 parent 2e08591
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/forms/widgets.py
View
2  django/forms/widgets.py
@@ -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]
Please sign in to comment.
Something went wrong with that request. Please try again.