Permalink
Browse files

fixed unicode error. thanks to Lacrymology.

  • Loading branch information...
1 parent 42c6c70 commit fdfc2dccd50dc4a1e483117a62ef5fc8ce32f577 @maccesch committed Sep 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmsplugin_contact/nospam/widgets.py
@@ -27,5 +27,5 @@ def render(self, *args, **kwargs):
class HoneypotWidget(forms.CheckboxInput):
is_hidden = True
def render(self, *args, **kwargs):
- wrapper_html = '<div style="display: none;"><label for="id_accept_terms">' + str(_('Are you a robot?')) + '</label>%s</div>'
+ wrapper_html = '<div style="display: none;"><label for="id_accept_terms">' + unicode(_('Are you a robot?')) + '</label>%s</div>'
return mark_safe(wrapper_html % super(HoneypotWidget, self).render(*args, **kwargs))

0 comments on commit fdfc2dc

Please sign in to comment.