From 9254e3f8f7b83ad029398c151d2cd9a4d8a6559f Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Thu, 17 Oct 2019 10:50:54 +0200 Subject: [PATCH] Fix: Souscription aux reventes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Il me semblait que c'était déjà fait... --- bda/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bda/views.py b/bda/views.py index 1ead6a43..94e57b7b 100644 --- a/bda/views.py +++ b/bda/views.py @@ -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)