1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-24 18:22:24 +00:00

Fix information for juries

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-03-30 22:27:38 +01:00
parent 30b9a73df8
commit 29b01ebb13
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -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 = _("<p>You don't have given any note as a jury for the passage {passage} "
"in the pool {pool} of {tournament}. "