Browse Source

Añado detalle_deportista

main
Celestino Rey 8 months ago
parent
commit
4a46956012
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      src/macrociclos/views.py

+ 6
- 0
src/macrociclos/views.py View File

@ -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)


Loading…
Cancel
Save