From bc4b06fc9246446a8de367eaee794e3cfad84327 Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Mon, 26 Sep 2016 20:41:59 +0200 Subject: [PATCH] fix save --- bda/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bda/models.py b/bda/models.py index b97db2c2..61937723 100644 --- a/bda/models.py +++ b/bda/models.py @@ -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()