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}. "