From d3a526b4f8452dbe55cc452885d7f7b5f65742a3 Mon Sep 17 00:00:00 2001 From: Gregory Trullemans Date: Sun, 9 Jan 2022 16:08:54 +0100 Subject: [PATCH] Bug fix in gymnast details skill list --- templates/objectives/skills/details.html | 4 ++-- templates/ultron/search/results.html | 4 ++-- ultron/people/views.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/objectives/skills/details.html b/templates/objectives/skills/details.html index 680a05dc1e..baf9c4325c 100644 --- a/templates/objectives/skills/details.html +++ b/templates/objectives/skills/details.html @@ -22,8 +22,8 @@

Rank : {{ skill.level }}

- - + +

diff --git a/templates/ultron/search/results.html b/templates/ultron/search/results.html index beaa7a0e6b..a3f7284323 100644 --- a/templates/ultron/search/results.html +++ b/templates/ultron/search/results.html @@ -63,8 +63,8 @@  {{ skill.long_label }} {{ skill.short_label }} - {{ skill.age_girl }} - {{ skill.age_boy }} + {{ skill.age_girl_masterised }} + {{ skill.age_boy_masterised }} {{ skill.notation }} {{ skill.difficulty }} {{ skill.level }} diff --git a/ultron/people/views.py b/ultron/people/views.py index b47d7dcc84..d8fa80f7aa 100644 --- a/ultron/people/views.py +++ b/ultron/people/views.py @@ -321,11 +321,11 @@ def gymnast_display_skill(request, gymnast_id): if gymnast.gender: context["skill_by_age"] = Skill.objects.filter( - age_girl__lte=gymnast.age + age_girl_masterised__lte=gymnast.age ).exclude(known_by__gymnast=gymnast.id) else: context["skill_by_age"] = Skill.objects.filter( - age_boy__lte=gymnast.age + age_boy_masterised__lte=gymnast.age ).exclude(known_by__gymnast=gymnast.id) skill_whith_help = (