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