diff --git a/src/core/models/schedules.py b/src/core/models/schedules.py index 6ef85f09bb2e1221cc50dba818a075998acc892d..ad3ef19f8cf50bd4933bec45219e8b05b86d6864 100644 --- a/src/core/models/schedules.py +++ b/src/core/models/schedules.py @@ -165,9 +165,9 @@ class ScheduleSource(models.Model): raise ValueError('Multiple candidate speakers found: ' + '; '.join(str(x.pk) for x in candidates)) # hail mary attempt: see if we have an imported speaker with the same name - candidates = self.conference.users.select_related('user').filter(user__user_type=PlatformUser.Type.SPEAKER, user__display_name=name).all() - if len(candidates) == 1: - return candidates[0], False + # candidates = self.conference.users.select_related('user').filter(user__user_type=PlatformUser.Type.SPEAKER, user__display_name=name).all() + # if len(candidates) == 1: + # return candidates[0].user, False # the expected case: nothing found, create a new one name_split = name.split(' ')