Update template

This commit is contained in:
Gregory Trullemans 2023-07-11 11:42:03 +02:00
parent 5e47ae48e9
commit 87d1fb9193
1 changed files with 4 additions and 4 deletions

View File

@ -240,8 +240,8 @@ def gymnast_display_accident(request, gymnast_id):
"""
Renvoie la liste des accidents d'un gymnaste.
"""
injury_list = Injury.objects.filter(gymnast=gymnast_id)
context = {"injury_list": injury_list, "gymnast_id": gymnast_id}
injuries_list = Injury.objects.filter(gymnast=gymnast_id)
context = {"injuries_list": injuries_list, "gymnast_id": gymnast_id}
return render(request, "people/gymnasts/list_accident.html", context)
@ -251,14 +251,14 @@ def gymnast_display_physiological(request, gymnast_id):
"""
Renvoie les listes des tailles/poids, état d'esprit et accidents.
"""
injury_list = Injury.objects.filter(gymnast=gymnast_id).order_by("date")
injuries_list = Injury.objects.filter(gymnast=gymnast_id).order_by("date")
wellbeing_list = WellBeing.objects.filter(gymnast=gymnast_id).order_by("date")
height_weight_list = HeightWeight.objects.filter(gymnast=gymnast_id).order_by(
"date"
)
context = {
"injury_list": injury_list,
"injuries_list": injuries_list,
"wellbeing_list": wellbeing_list,
"height_weight_list": height_weight_list,
"gymnast_id": gymnast_id,