From 4a469560129a0831108a248df6d72b481a997a08 Mon Sep 17 00:00:00 2001 From: Celestino Rey Date: Wed, 26 Mar 2025 08:51:32 +0100 Subject: [PATCH] =?UTF-8?q?A=C3=B1ado=20detalle=5Fdeportista?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/macrociclos/views.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/macrociclos/views.py b/src/macrociclos/views.py index 15c4192..1dd01bd 100644 --- a/src/macrociclos/views.py +++ b/src/macrociclos/views.py @@ -89,6 +89,12 @@ def nuevo_deportista(request): return render(request, 'macrociclos/index.html') +@login_required +def detalle_deportista(request, deportista_id): + deportista = get_object_or_404(Entrenador, pk=deportista_id) + return render(request, 'macrociclos/detalle_deportista.html', {'deportista': deportista}) + + @login_required def editar_deportista(request, deportista_id): deportista = get_object_or_404(Deportista, pk=deportista_id)