Commit c0e7d271 authored by Luko van der Maas's avatar Luko van der Maas
Browse files

Merge branch 'fix/819-pizzas-no-notification-order' into 'master'

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

Closes #819

See merge request !1163
parents 15c35790 c925a1e7
......@@ -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