fix newsletter field in registration form
authorJan Szejko <janek37@gmail.com>
Fri, 20 Apr 2018 15:04:01 +0000 (17:04 +0200)
committerJan Szejko <janek37@gmail.com>
Fri, 20 Apr 2018 15:04:01 +0000 (17:04 +0200)
src/ajaxable/templatetags/ajaxable_tags.py

index 55059e5..ec90e47 100644 (file)
@@ -39,7 +39,7 @@ def pretty_field(field, template=None):
 
 @register.filter
 def pretty_checkbox(field):
 
 @register.filter
 def pretty_checkbox(field):
-    return pretty_field(field, template='''
+    return pretty_field(field, template=u'''
         <li class="checkbox">
           <span class="error">%(errors)s</span>
           <label class="nohide">%(input)s<span class="label"> %(label)s</span></label>
         <li class="checkbox">
           <span class="error">%(errors)s</span>
           <label class="nohide">%(input)s<span class="label"> %(label)s</span></label>