fix error 500 shotgun

This commit is contained in:
Ludovic Stephan 2016-09-28 16:47:46 +02:00
parent 284dc12b7c
commit ad0c398292

View file

@ -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: