Skip to content

Commit

Permalink
Use 'ugettext' instead of 'ugettext_lazy' in 'cmsplugin_contact.nospa…
Browse files Browse the repository at this point in the history
…m.widgets.HoneypotWidget.render()'

When rendering 'HoneypotWidget' language is already active and it is not necessary to use 'ugettext_lazy' as it returns object instance. Plus, string operator '%' will insert into string value of 'repr()' instead translated text. It results in incorrect HTML.
  • Loading branch information
xdml committed May 18, 2013
1 parent ea95740 commit 524044a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmsplugin_contact/nospam/widgets.py
@@ -1,5 +1,5 @@
from django import forms from django import forms
from django.utils.translation import ugettext_lazy as _, get_language from django.utils.translation import ugettext as _, get_language
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe




Expand Down

0 comments on commit 524044a

Please sign in to comment.