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

Fix automatically selected members for scheduled messages

parent 8bcdc918
......@@ -304,7 +304,7 @@ class Event(models.Model, metaclass=ModelTranslateMeta):
registration_reminder.save()
self.registration_reminder = registration_reminder
self.registration_reminder.users.set(
Member.active_members.all())
Member.current_members.all())
elif registration_reminder.pk is not None:
self.registration_reminder = None
registration_reminder.delete()
......@@ -330,7 +330,7 @@ class Event(models.Model, metaclass=ModelTranslateMeta):
self.start_reminder.users.set(self.participants.values_list(
'member', flat=True))
else:
self.start_reminder.users.set(Member.active_members.all())
self.start_reminder.users.set(Member.current_members.all())
elif start_reminder.pk is not None:
self.start_reminder = None
start_reminder.delete()
......
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