Verified Commit e751fdfb authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix saving pizza event if notification already exists

parent 54be22a3
......@@ -114,7 +114,10 @@ class PizzaEvent(models.Model):
self.end_reminder.time = self.end
elif not self.send_notification and self.end_reminder:
end_reminder = self.end_reminder
self.end_reminder = None
if not self.end_reminder.sent:
super().save(*args, **kwargs)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment