From a010df5d1ffc1d2d65ce5311526ec9c094d952f2 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Tue, 27 Nov 2012 22:54:07 +0100 Subject: [PATCH] Reverted person.sort_name AttributeError fix (e0ce1052c0031b24927599d7f707962a206c0ddb) --- openslides/assignment/models.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/openslides/assignment/models.py b/openslides/assignment/models.py index bd5d64622..56269b601 100644 --- a/openslides/assignment/models.py +++ b/openslides/assignment/models.py @@ -152,10 +152,7 @@ class Assignment(models.Model, SlideMixin): participants = [] for candidate in candidates.all(): participants.append(candidate.person) - try: - participants.sort(key=lambda person: person.sort_name) - except AttributeError: - pass + participants.sort(key=lambda person: person.sort_name) return participants #return candidates.values_list('person', flat=True)