fix links

This commit is contained in:
Ludovic Stephan 2016-10-06 18:51:19 +02:00
parent d1456d7c68
commit 173c5a840b

View file

@ -436,7 +436,7 @@ def buy_revente(request, spectacle_id):
if reventes.filter(seller=participant).exists(): if reventes.filter(seller=participant).exists():
revente = reventes.filter(seller=participant)[0] revente = reventes.filter(seller=participant)[0]
revente.delete() revente.delete()
return HttpResponseRedirect(reverse("bda-liste-revente", return HttpResponseRedirect(reverse("bda-revente-shotgun",
args=[tirage.id])) args=[tirage.id]))
reventes_shotgun = [] reventes_shotgun = []
for revente in reventes.all(): for revente in reventes.all():
@ -489,7 +489,7 @@ def revente_shotgun(request, tirage_id):
spectacle.revente_count = revente_count spectacle.revente_count = revente_count
shotgun.append(spectacle) shotgun.append(spectacle)
return render(request, "revente-shotgun.html", return render(request, "bda-shotgun.html",
{"shotgun": shotgun}) {"shotgun": shotgun})