inscription des déçus à BdA-Revente

This commit is contained in:
Ludovic Stephan 2016-09-03 19:39:28 +02:00
parent 46f91adc08
commit a607f35342

View file

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