Fix assignment poll choosing the right method (yes-no-abstain True or False)
This commit is contained in:
parent
00e77ba0fc
commit
06af94fb91
@ -293,7 +293,7 @@ class AssignmentPoll(BasePoll, CountInvalid, CountVotesCast, PublishPollMixin):
|
|||||||
self.yesnoabstain = True
|
self.yesnoabstain = True
|
||||||
else:
|
else:
|
||||||
# candidates <= available posts -> yes/no/abstain
|
# candidates <= available posts -> yes/no/abstain
|
||||||
if self.assignment.assignment_candidats.filter(elected=False).count() <= (self.assignment.posts):
|
if len(self.assignment.candidates) <= (self.assignment.posts - len(self.assignment.elected)):
|
||||||
self.yesnoabstain = True
|
self.yesnoabstain = True
|
||||||
else:
|
else:
|
||||||
self.yesnoabstain = False
|
self.yesnoabstain = False
|
||||||
|
Loading…
Reference in New Issue
Block a user