From a0a4ff05d5fa85ba8074f52a3f0da8a801b1a4df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Wed, 8 Jun 2016 13:26:04 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9pare=20les=20tirages=20du=20BdA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La liste des spectacles était passées à l'algo de tirage au lieu des participants --- bda/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bda/views.py b/bda/views.py index ed653b54..39a6e760 100644 --- a/bda/views.py +++ b/bda/views.py @@ -190,7 +190,7 @@ def do_tirage(request, tirage_id): start = time.time() data = {} shows = tirage_elt.spectacle_set.select_related().all() - members = tirage_elt.spectacle_set.all() + members = tirage_elt.participant_set.all() choices = ChoixSpectacle.objects.filter(spectacle__tirage=tirage_elt).order_by( 'participant', 'priority').select_related().all() algo = Algorithm(shows, members, choices)