UPD: dav_events: 1. notify only web and facebook about closed registration. 2. respect closed registrations on event list export.

This commit is contained in:
2019-06-05 12:47:54 +02:00
parent 7a16bee457
commit 32d350b2ab

View File

@@ -72,6 +72,7 @@ class EventListExportView(generic.FormView):
filename = _(u'Veranstaltungen')
filter_kwargs = {
'flags__status__code': 'accepted',
'registration_closed': False,
}
if form.cleaned_data['sport']:
sport = form.cleaned_data['sport']
@@ -229,7 +230,8 @@ class EventRegistrationsView(EventPermissionMixin, generic.DetailView):
return context
def _notify_publisher(self, event, editor):
recipients = get_users_by_role('publisher')
recipients = get_users_by_role('publisher_web')
recipients += get_users_by_role('publisher_facebook')
for recipient in recipients:
if recipient.email:
email = emails.EventRegistrationClosedMail(recipient=recipient, event=event, editor=editor)