Reverted person.sort_name AttributeError fix (e0ce1052c0
)
This commit is contained in:
parent
29b37dad74
commit
a010df5d1f
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user