From f412e9065a8674909e5e32a82a2ac4e176561992 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 5 Sep 2011 21:40:56 +0200 Subject: [PATCH] Needs fix to group candidates by user. --- openslides/assignment/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openslides/assignment/models.py b/openslides/assignment/models.py index d68c44156..3e42d6a2a 100644 --- a/openslides/assignment/models.py +++ b/openslides/assignment/models.py @@ -72,6 +72,7 @@ class Assignment(models.Model): # list of candidates from poll.models import Option candidates = [] + #for option in Option.objects.values('user__user__profile').filter(poll__assignment=self).order_by('user__user__first_name').distinct(): for option in Option.objects.filter(poll__assignment=self).order_by('user__user__first_name'): candidates.append(option.value) return candidates