From 381b52f46c12e58acb5f087a503db2d453c9b65f Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Wed, 6 Nov 2019 23:13:14 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20les=20participants=20nouvellement=20cr?= =?UTF-8?q?=C3=A9=C3=A9s=20ont=20pay=C3=A9=20leurs=20places=20BdA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Si un participanti est créé avec `get_or_create`, son champ `paid` n'était pas créé... C'est difficile à insérer dans la logique du Manager, donc on fix ça dans la vue concernée. --- bda/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bda/views.py b/bda/views.py index 94e57b7b..29812b90 100644 --- a/bda/views.py +++ b/bda/views.py @@ -385,7 +385,7 @@ def revente_manage(request, tirage_id): user=request.user, tirage=tirage ) - if not participant.paid: + if not created and not participant.paid: return render(request, "bda/revente/notpaid.html", {}) resellform = ResellForm(participant, prefix="resell")