This commit is contained in:
Ludovic Stephan 2016-09-26 20:41:59 +02:00
parent 7984eb132b
commit bc4b06fc92

View file

@ -280,6 +280,7 @@ class SpectacleRevente(models.Model):
connection = mail.get_connection()
connection.send_messages(mails_to_send)
self.notif_sent = True
self.save()
def mail_shotgun(self):
inscrits = self.attribution.spectacle.revente.select_related('user')
@ -300,6 +301,7 @@ class SpectacleRevente(models.Model):
connection = mail.get_connection()
connection.send_messages(mails_to_send)
self.notif_sent = True
self.save()
def tirage(self):
inscrits = self.interested
@ -331,3 +333,4 @@ Le BdA""" % (spectacle.title, winner.user.get_full_name(), winner.user.email)
mail_seller, "bda@ens.fr", [seller.email],
fail_silently=False)
self.tirage_done = True
self.save()