Juries are volunteers

This commit is contained in:
Yohann D'ANELLO 2022-05-15 16:20:43 +02:00
parent 50409931cf
commit e848855072
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 2 additions and 1 deletions

View File

@ -244,7 +244,8 @@ class UploadNotesForm(forms.Form):
first_name, last_name = tuple(name.split(' ', 1))
jury = User.objects.filter(first_name=first_name, last_name=last_name)
jury = User.objects.filter(first_name=first_name, last_name=last_name,
registration__volunteerregistration__isnull=False)
if jury.count() != 1:
self.add_error('file', _("The following user was not found:") + " " + name)
continue