Commits

Nathaniel Tucker committed 2e55e50

Widget should render as unicode

Comments (0)

Files changed (1)

recaptcha_form/forms.py

        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):