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

Fix unpublishing event

parent 17728666
......@@ -384,9 +384,11 @@ class Event(models.Model, metaclass=ModelTranslateMeta):
if (self.registration_reminder is not None
and not self.registration_reminder.sent):
self.registration_reminder.delete()
self.registration_reminder = None
if (self.start_reminder is not None
and not self.start_reminder.sent):
self.start_reminder.delete()
self.start_reminder = None
super().save()
......
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