From fec269e4a72712f782bbb0a97205e35f9a543b5b Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 5 Sep 2011 20:27:47 +0200 Subject: [PATCH] Fixed alphabetical order of candidates. --- openslides/assignment/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openslides/assignment/models.py b/openslides/assignment/models.py index b400f3d78..d68c44156 100644 --- a/openslides/assignment/models.py +++ b/openslides/assignment/models.py @@ -71,9 +71,9 @@ class Assignment(models.Model): def candidates(self): # list of candidates from poll.models import Option - candidates = set() - for option in Option.objects.filter(poll__assignment=self): - candidates.add(option.value) + candidates = [] + for option in Option.objects.filter(poll__assignment=self).order_by('user__user__first_name'): + candidates.append(option.value) return candidates def set_elected(self, profile, value=True):