Fixed filename of assignment poll pdf.

This commit is contained in:
Emanuel Schuetze 2012-07-23 12:58:46 +02:00
parent bf5181e241
commit d58e8f4c84

View File

@ -498,8 +498,7 @@ class AssignmentPollPDF(PDFView):
return super(AssignmentPollPDF, self).get(request, *args, **kwargs) return super(AssignmentPollPDF, self).get(request, *args, **kwargs)
def get_filename(self): def get_filename(self):
filename = u'%s-%s-#%s' % (_("Election"), self.poll.assignment.name filename = u'%s-%s_%s' % (_("Election"), self.poll.assignment.name.replace(' ', '_'), self.poll.get_ballot())
.replace(' ', '_'), 1)
return filename return filename
def get_template(self, buffer): def get_template(self, buffer):