This commit is contained in:
CHIBOUB Chakib
2024-09-11 15:58:19 +02:00
2 changed files with 14 additions and 7 deletions

View File

@@ -92,7 +92,7 @@ def player_list_json(request):
return JsonResponse(data)
def tournoi_list_json(request):
tournois = Tournoi.objects.all()
tournois = Tournoi.objects.select_related('winner').all()
data = {
'tournois': list(tournois.values(