Update template
This commit is contained in:
parent
5e47ae48e9
commit
87d1fb9193
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue