fix yesnoababstain in views.py

This commit is contained in:
Oskar Hahn 2012-06-28 22:49:02 +02:00
parent 4af19d091b
commit a00fe2b241

View File

@ -517,7 +517,7 @@ class AssignmentPollPDF(PDFView):
ballot_papers_selection = config["assignment_pdf_ballot_papers_selection"] ballot_papers_selection = config["assignment_pdf_ballot_papers_selection"]
ballot_papers_number = config["assignment_pdf_ballot_papers_number"] ballot_papers_number = config["assignment_pdf_ballot_papers_number"]
# Choose kind of ballot paper # Choose kind of ballot paper
if self.poll.yesnoababstain: if self.poll.yesnoabstain:
for option in options: for option in options:
o = str(option).split("(",1) o = str(option).split("(",1)
cell.append(Paragraph(o[0], stylesheet['Ballot_option_name'])) cell.append(Paragraph(o[0], stylesheet['Ballot_option_name']))