#297 fix error in ApplicationPDF with changes in the poll API

This commit is contained in:
Oskar Hahn 2012-07-16 14:05:51 +02:00
parent 0b033271f8
commit 07c4649243

View File

@ -478,7 +478,9 @@ class Application(models.Model, SlideMixin):
for poll in self.polls:
for option in poll.get_options():
if option.get_votes().exists():
results.append((option.Yes, option.No, option.Abstain, poll.print_votesinvalid(), poll.print_votescast()))
results.append((option['Yes'], option['No'],
option['Abstain'], poll.print_votesinvalid(),
poll.print_votescast()))
return results