fix yesnoababstain in views.py
This commit is contained in:
parent
4af19d091b
commit
a00fe2b241
@ -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']))
|
||||||
@ -575,7 +575,7 @@ class AssignmentPollPDF(PDFView):
|
|||||||
t=Table(data, 10.5*cm, 14.84*cm)
|
t=Table(data, 10.5*cm, 14.84*cm)
|
||||||
else:
|
else:
|
||||||
t=Table(data, 10.5*cm, 29.7*cm)
|
t=Table(data, 10.5*cm, 29.7*cm)
|
||||||
|
|
||||||
t.setStyle(TableStyle([ ('GRID', (0,0), (-1,-1), 0.25, colors.grey),
|
t.setStyle(TableStyle([ ('GRID', (0,0), (-1,-1), 0.25, colors.grey),
|
||||||
('VALIGN', (0,0), (-1,-1), 'TOP'),
|
('VALIGN', (0,0), (-1,-1), 'TOP'),
|
||||||
]))
|
]))
|
||||||
|
Loading…
Reference in New Issue
Block a user