Permalink
Browse files

Merge pull request #36 from Lacrymology/production

this needs to be unicode in order for translation to ocurr, not str
  • Loading branch information...
2 parents 95de714 + 0327f22 commit e88bd0d2536c89c84099250066366f7bb736affc @mitar mitar committed Nov 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cmsplugin_contact/nospam/widgets.py
View
2 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 e88bd0d

Please sign in to comment.