Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

this needs to be unicode in order for translation to ocurr, not str #36

Merged
merged 1 commit into from

2 participants

@Lacrymology

I was getting this rendered:

<label for="id_accept_terms"><django.utils.functional.__proxy__ object at 0x10d777750></label>

also, maybe this should be using ugettext instead of ugettext_lazy, since this happens at render time, not on the setup phase

@mitar mitar merged commit e88bd0d into from
@mitar
Collaborator

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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))
Something went wrong with that request. Please try again.