From ad0c398292d552e2c3a04be2e49726da2583812d Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Wed, 28 Sep 2016 16:47:46 +0200 Subject: [PATCH] fix error 500 shotgun --- bda/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bda/views.py b/bda/views.py index c72e5b1d..4f1ba977 100644 --- a/bda/views.py +++ b/bda/views.py @@ -443,7 +443,7 @@ def buy_revente(request, spectacle_id): if revente.shotgun: reventes_shotgun.append(revente) - if reventes_shotgun.empty(): + if not reventes_shotgun: return render(request, "bda-no-revente.html", {}) if request.POST: