From 29b01ebb132b1a30d6892363f394dd97495e4bd2 Mon Sep 17 00:00:00 2001 From: Emmy D'Anello Date: Sat, 30 Mar 2024 22:27:38 +0100 Subject: [PATCH] Fix information for juries Signed-off-by: Emmy D'Anello --- registration/models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/registration/models.py b/registration/models.py index 61aa4b3..2da3334 100644 --- a/registration/models.py +++ b/registration/models.py @@ -17,8 +17,6 @@ from django.utils.text import format_lazy from django.utils.translation import gettext_lazy as _ from phonenumber_field.modelfields import PhoneNumberField from polymorphic.models import PolymorphicModel - -from participation.models import Note from tfjm import helloasso from tfjm.tokens import email_validation_token @@ -553,7 +551,7 @@ class VolunteerRegistration(Registration): 'content': content, }) - for note in Note.objects.filter(jury=self.request.user, passage__pool=pool).all(): + for note in self.notes.filter(passage__pool=pool).all(): if not note.has_any_note(): text = _("

You don't have given any note as a jury for the passage {passage} " "in the pool {pool} of {tournament}. "