Commit 689c98d2 authored by Thom Wiggers's avatar Thom Wiggers Committed by Sébastiaan Versteeg

Merge branch 'fix/members-for-scheduled-messages' into 'master'

Fix automatically selected members for scheduled messages

See merge request thalia/concrexit!929

(cherry picked from commit 683c1504)

8403d330 Fix automatically selected members for scheduled messages
parent 37dafc46
......@@ -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()
......
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