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)