From 085013b256f2d32c8c7b5278d1e95528629b1b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Sun, 1 Dec 2019 11:33:44 +0100 Subject: [PATCH] Add some explanations about !379 --- bda/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bda/views.py b/bda/views.py index 29812b90..f33b7013 100644 --- a/bda/views.py +++ b/bda/views.py @@ -385,6 +385,9 @@ def revente_manage(request, tirage_id): user=request.user, tirage=tirage ) + # If the participant has just been created, the `paid` field is not + # automatically added by our custom ObjectManager. Skip the check in this + # scenario. if not created and not participant.paid: return render(request, "bda/revente/notpaid.html", {})