From e848855072e1b4adc9bf0bc98748b6309029f468 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sun, 15 May 2022 16:20:43 +0200 Subject: [PATCH] Juries are volunteers --- apps/participation/forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/participation/forms.py b/apps/participation/forms.py index d5055b7..43999cd 100644 --- a/apps/participation/forms.py +++ b/apps/participation/forms.py @@ -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