From 6898e9413aa587323aa52d13e3da65f2f4ed37ce Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Sun, 24 Jan 2021 23:37:55 +0100 Subject: [PATCH] Fix user detail for children --- apps/registration/templates/registration/user_detail.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/registration/templates/registration/user_detail.html b/apps/registration/templates/registration/user_detail.html index ff3c6ad..b29a835 100644 --- a/apps/registration/templates/registration/user_detail.html +++ b/apps/registration/templates/registration/user_detail.html @@ -65,8 +65,8 @@ {% endif %} - {% if user_object.registration.studentregistration and user_object.registration.participation.tournament and not user_object.registration.participation.tournament.remote %} - {% if user_object.registration.under_18 %} + {% if user_object.registration.studentregistration %} + {% if user_object.registration.under_18 and user_object.registration.team.participation.tournament and not user_object.registration.team.participation.tournament.remote %}
{% trans "Health sheet:" %}
{% if user_object.registration.health_sheet %}