From 182f20308b7ec4a441f4a7f2c03b2e97892c26b6 Mon Sep 17 00:00:00 2001 From: Andy Kittner Date: Sat, 19 May 2012 13:41:30 +0200 Subject: [PATCH] Fix exception in polls with special values (fallout from translation fix) --- openslides/poll/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openslides/poll/models.py b/openslides/poll/models.py index 3817efc2d..8be7df681 100644 --- a/openslides/poll/models.py +++ b/openslides/poll/models.py @@ -40,7 +40,7 @@ class Vote(models.Model): return print_value(self.weight) def get_value(self): - return _(self.value) + return unicode(_(self.value)) def __unicode__(self): return self.get_weight() @@ -189,8 +189,8 @@ class BasePoll(models.Model, SlideMixin): def print_value(value): if value == -1: - return _('majority') + value = _('majority') elif value == -2: - return _('undocumented') + value = _('undocumented') return unicode(value)