Fixed #125: Assignment PDF: Invalid votes and votes cast doesn't support special values '-1' and '-2'.

This commit is contained in:
Emanuel Schuetze 2012-04-17 21:16:55 +02:00
parent a3d7cc98a9
commit 040b5ffb45

View File

@ -376,7 +376,7 @@ class AssignmentPDF(PDFView):
row.append(_("Invalid votes"))
for p in polls:
if p.published:
row.append(p.votesinvalid)
row.append(p.print_votesinvalid())
data_votes.append(row)
# votes cast
@ -384,7 +384,7 @@ class AssignmentPDF(PDFView):
row.append(_("Votes cast"))
for p in polls:
if p.published:
row.append(p.votescast)
row.append(p.print_votescast())
data_votes.append(row)
table_votes=Table(data_votes)