forked from DGNum/gestioCOF
fix save
This commit is contained in:
parent
7984eb132b
commit
bc4b06fc92
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue