Permalink
Browse files

this needs to be unicode in order for translation to ocurr

  • Loading branch information...
Lacrymology committed Nov 20, 2012
1 parent 95de714 commit 0327f2289391b2e6df9d96ba49cc31c3f0e5346b
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">%s</label>%%s</div>'%(_('Are you a robot?'))
+ wrapper_html = u'<div style="display: none;"><label for="id_accept_terms">%s</label>%%s</div>' % (_('Are you a robot?'))
return mark_safe(wrapper_html % super(HoneypotWidget, self).render(*args, **kwargs))

0 comments on commit 0327f22

Please sign in to comment.