This commit is contained in:
Theouche
2024-09-11 15:57:31 +02:00
parent 07b05299c7
commit 43650421d3
2 changed files with 8 additions and 6 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(