forked from DGNum/gestioCOF
corrects bug with bda-buy
This commit is contained in:
parent
a5e6a8e635
commit
bbfce33c3f
1 changed files with 2 additions and 2 deletions
|
@ -440,7 +440,7 @@ def buy_revente(request, spectacle_id):
|
|||
return render(request, "bda-no-revente.html", {})
|
||||
|
||||
if request.POST:
|
||||
revente = random.choice(reventes.all(), 1)
|
||||
revente = random.choice(reventes.all())
|
||||
revente.soldTo = participant
|
||||
revente.save()
|
||||
mail = """Bonjour !
|
||||
|
@ -456,7 +456,7 @@ Contacte-moi si tu es toujours intéressé·e !
|
|||
[revente.seller.user.email],
|
||||
fail_silently=False)
|
||||
return render(request, "bda-success.html",
|
||||
{"seller": revente.participant.user,
|
||||
{"seller": revente.attribution.participant.user,
|
||||
"spectacle": spectacle})
|
||||
|
||||
return render(request, "revente-confirm.html",
|
||||
|
|
Loading…
Reference in a new issue