From a607f353429cead4a5af4d452edcd6b15091cc50 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Sat, 3 Sep 2016 19:39:28 +0200 Subject: [PATCH] =?UTF-8?q?inscription=20des=20d=C3=A9=C3=A7us=20=C3=A0=20?= =?UTF-8?q?BdA-Revente?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bda/views.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bda/views.py b/bda/views.py index 40bd924d..3641b776 100644 --- a/bda/views.py +++ b/bda/views.py @@ -235,6 +235,11 @@ def do_tirage(request, tirage_id): Attribution(spectacle=show, participant=member) for show, members, _ in results for member, _, _, _ in members]) + # On inscrit à BdA-Revente ceux qui n'ont pas eu les places voulues + for (show, _, losers) in results: + for (loser, _, _, _) in losers: + loser.choicesrevente.add(show) + loser.save() return render(request, "bda-attrib-extra.html", data) else: return render(request, "bda-attrib.html", data)