#297 fix error in ApplicationPDF with changes in the poll API
This commit is contained in:
parent
0b033271f8
commit
07c4649243
@ -478,7 +478,9 @@ class Application(models.Model, SlideMixin):
|
|||||||
for poll in self.polls:
|
for poll in self.polls:
|
||||||
for option in poll.get_options():
|
for option in poll.get_options():
|
||||||
if option.get_votes().exists():
|
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
|
return results
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user