summaryrefslogtreecommitdiff
path: root/polls/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'polls/views.py')
-rw-r--r--polls/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/polls/views.py b/polls/views.py
index f42f854..b7103a8 100644
--- a/polls/views.py
+++ b/polls/views.py
@@ -240,9 +240,9 @@ public=public)
new_limit = int(request.POST[key])
sum = choice.getSum()
if new_limit < sum:
- response_dct['error'] = _("You cannot lower %s\
-'s limit to this number : there is currently %d votes for this choice.") % (
- choice.name, sum)
+ response_dct['error'] = _("You cannot lower \
+%(name)s's limit to this number : there is currently %(sum)d votes for this \
+choice.") % {'name':choice.name, 'sum':sum}
else:
choice.limit = new_limit
choice.save()