1. Nathaniel Tucker
  2. django-recaptcha

Commits

Nathaniel Tucker  committed 2e55e50

Widget should render as unicode

  • Participants
  • Parent commits 73f9670
  • Branches default

Comments (0)

Files changed (1)

File recaptcha_form/forms.py

View file
  • Ignore whitespace
        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):