Commits

Rafael A  committed aa4ba33

fix: unicode error

  • Participants
  • Parent commits c47f7cd

Comments (0)

Files changed (1)

File poll/templatetags/polls_tags.py

         poll = self.poll.resolve(context)
         items = self.items.resolve(context)
         #'name' = item.pk
-        pattern1 = '{3}<br /><input name="poll_{0}" ' \
+        pattern1 = u'{3}<br /><input name="poll_{0}" ' \
                    'type="{1}" id="{2}" value="" /><br />'
-        pattern2 = '<input name="poll_{0}" type="{1}" id="{2}" /> {3}<br />'
-        result = ''
+        pattern2 = u'<input name="poll_{0}" type="{1}" id="{2}" /> {3}<br />'
+        result = u''
 
         #Choose an input type
         for item in items: