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
1 changed files with 1 additions and 3 deletions

View File

@ -17,8 +17,6 @@ from django.utils.text import format_lazy
from django.utils.translation import gettext_lazy as _ from django.utils.translation import gettext_lazy as _
from phonenumber_field.modelfields import PhoneNumberField from phonenumber_field.modelfields import PhoneNumberField
from polymorphic.models import PolymorphicModel from polymorphic.models import PolymorphicModel
from participation.models import Note
from tfjm import helloasso from tfjm import helloasso
from tfjm.tokens import email_validation_token from tfjm.tokens import email_validation_token
@ -553,7 +551,7 @@ class VolunteerRegistration(Registration):
'content': content, '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(): if not note.has_any_note():
text = _("<p>You don't have given any note as a jury for the passage {passage} " text = _("<p>You don't have given any note as a jury for the passage {passage} "
"in the pool {pool} of {tournament}. " "in the pool {pool} of {tournament}. "