Assignment: Fixed generating ballot pdf paper (typo: surfix).

This commit is contained in:
Emanuel Schuetze 2012-09-18 22:37:53 +02:00
parent 5aa2bc650f
commit 9cb9270df3
1 changed files with 2 additions and 2 deletions

View File

@ -567,8 +567,8 @@ class AssignmentPollPDF(PDFView):
candidate = option.candidate
cell.append(Paragraph(candidate.user.get_full_name(),
stylesheet['Ballot_option_name']))
if candidate.name_surfix:
cell.append(Paragraph("(%s)" % candidate.name_surfix,
if candidate.name_suffix:
cell.append(Paragraph("(%s)" % candidate.name_suffix,
stylesheet['Ballot_option_group']))
else:
cell.append(Paragraph(" ",