Commit a1fc7165 authored by Jelle Besseling's avatar Jelle Besseling

Merge branch 'fix/events-unpublish' into 'master'

Fix events unpublish

See merge request !1135
parents c895cd49 5a184bdb
......@@ -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