From 06af94fb910a5b25d142da793e79fc91edc822de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Wed, 21 Nov 2012 15:03:29 +0100 Subject: [PATCH] Fix assignment poll choosing the right method (yes-no-abstain True or False) --- openslides/assignment/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openslides/assignment/models.py b/openslides/assignment/models.py index 4b86b75cf..8c8019dda 100644 --- a/openslides/assignment/models.py +++ b/openslides/assignment/models.py @@ -293,7 +293,7 @@ class AssignmentPoll(BasePoll, CountInvalid, CountVotesCast, PublishPollMixin): self.yesnoabstain = True else: # 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 else: self.yesnoabstain = False