From a5e6a8e635694e26cd209a9b4a286a7b1b4d6702 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Sun, 25 Sep 2016 12:12:31 +0200 Subject: [PATCH] fix message liste_revente --- bda/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bda/views.py b/bda/views.py index 3b36379f..241bc90d 100644 --- a/bda/views.py +++ b/bda/views.py @@ -406,11 +406,11 @@ def list_revente(request, tirage_id): if qset.exists(): # On l'inscrit à l'un des tirages au sort for revente in qset.all(): - if not revente.shotgun: + if revente.shotgun: + deja_revente = True + else: revente.interested.add(participant) break - deja_revente = True - else: form = InscriptionReventeForm( tirage,