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

Fix pizza order where pizza event has no notification, closes #819

parent eb8602ca
......@@ -186,13 +186,13 @@ class Order(models.Model):
})
def save(self, *args, **kwargs):
if not self.id:
if not self.id and self.pizza_event.end_reminder:
self.pizza_event.end_reminder.users.remove(self.member)
super().save(*args, **kwargs)
def delete(self, using=None, keep_parents=False):
if not self.id:
if not self.id and self.pizza_event.end_reminder:
self.pizza_event.end_reminder.users.add(self.member)
super().delete(using, keep_parents)
......
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