Skip to content

Commit

Permalink
Widget should render as unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
ntucker committed Aug 1, 2012
1 parent 7c9785b commit 246cd8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recaptcha_form/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self):
super(RecaptchaWidget, self).__init__()

def render(self, name, value, attrs=None):
html = captcha.displayhtml(settings.RECAPTCHA_PUB_KEY)
html = unicode(captcha.displayhtml(settings.RECAPTCHA_PUB_KEY))
return mark_safe(html)

def value_from_datadict(self, data, files, name):
Expand Down

0 comments on commit 246cd8e

Please sign in to comment.