Fix: Souscription aux reventes

Il me semblait que c'était déjà fait...
This commit is contained in:
Ludovic Stephan 2019-10-17 10:50:54 +02:00
parent 6fba63846a
commit 9254e3f8f7

View file

@ -563,7 +563,7 @@ def revente_subscribe(request, tirage_id):
form = InscriptionReventeForm(tirage, request.POST)
if form.is_valid():
choices = form.cleaned_data["spectacles"]
participant.choicesrevente = choices
participant.choicesrevente.set(choices)
participant.save()
for spectacle in choices:
qset = SpectacleRevente.objects.filter(attribution__spectacle=spectacle)