`participant.email` -> `participant.user.email`
This commit is contained in:
Martin Pépin 2016-10-06 10:28:13 +02:00
parent fbc4158de7
commit 0a85eaa0cf

View file

@ -333,7 +333,7 @@ Tu peux contacter le/la vendeur-se à l'adresse %s.
Chaleureusement,
Le BdA""" % (spectacle.title, spectacle.date_no_seconds(),
spectacle.location, spectacle.price, seller.email)
spectacle.location, spectacle.price, seller.user.email)
mail.send_mail("BdA-Revente : %s" % spectacle.title,
mail_buyer, "bda@ens.fr", [winner.user.email],
@ -346,7 +346,7 @@ Chaleureusement,
Le BdA""" % (spectacle.title, winner.user.get_full_name(), winner.user.email)
mail.send_mail("BdA-Revente : %s" % spectacle.title,
mail_seller, "bda@ens.fr", [seller.email],
mail_seller, "bda@ens.fr", [seller.user.email],
fail_silently=False)
self.tirage_done = True
self.save()