Fixed filename of assignment poll pdf.
This commit is contained in:
parent
bf5181e241
commit
d58e8f4c84
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user