fix manage_reventes

This commit is contained in:
Ludovic Stephan 2016-10-03 16:47:22 +02:00
parent 018f493b16
commit 7fbf0e4809
4 changed files with 7 additions and 5 deletions

View file

@ -269,7 +269,7 @@ class SpectacleRevente(models.Model):
for participant in inscrits:
mail_body = render_template('mail-revente.txt', {
'user': participant.user,
'spectacle': self.spectacle,
'spectacle': self.attribution.spectacle,
'revente': self})
mail_tot = mail.EmailMessage(
mail_object, mail_body,
@ -290,7 +290,7 @@ class SpectacleRevente(models.Model):
for participant in inscrits:
mail_body = render_template('mail-shotgun.txt', {
'user': participant.user,
'spectacle': self.spectacle,
'spectacle': self.attribution.spectacle,
'mail': self.attribution.participant.user.email})
mail_tot = mail.EmailMessage(
mail_object, mail_body,