From d58e8f4c84e14744cc051e14228353a5637d25d6 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 23 Jul 2012 12:58:46 +0200 Subject: [PATCH] Fixed filename of assignment poll pdf. --- openslides/assignment/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openslides/assignment/views.py b/openslides/assignment/views.py index 11f7de3b1..bdee1fba5 100644 --- a/openslides/assignment/views.py +++ b/openslides/assignment/views.py @@ -498,8 +498,7 @@ class AssignmentPollPDF(PDFView): return super(AssignmentPollPDF, self).get(request, *args, **kwargs) def get_filename(self): - filename = u'%s-%s-#%s' % (_("Election"), self.poll.assignment.name - .replace(' ', '_'), 1) + filename = u'%s-%s_%s' % (_("Election"), self.poll.assignment.name.replace(' ', '_'), self.poll.get_ballot()) return filename def get_template(self, buffer):