Merge branch 'Aufinal/fix-reventes' into 'master'

Fix: Souscription aux reventes

See merge request klub-dev-ens/gestioCOF!375
This commit is contained in:
Martin Pepin 2019-10-18 09:31:56 +02:00
commit 4d9c66cb51

View file

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