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:
@@ -72,6 +72,7 @@ class EventListExportView(generic.FormView):
|
|||||||
filename = _(u'Veranstaltungen')
|
filename = _(u'Veranstaltungen')
|
||||||
filter_kwargs = {
|
filter_kwargs = {
|
||||||
'flags__status__code': 'accepted',
|
'flags__status__code': 'accepted',
|
||||||
|
'registration_closed': False,
|
||||||
}
|
}
|
||||||
if form.cleaned_data['sport']:
|
if form.cleaned_data['sport']:
|
||||||
sport = form.cleaned_data['sport']
|
sport = form.cleaned_data['sport']
|
||||||
@@ -229,7 +230,8 @@ class EventRegistrationsView(EventPermissionMixin, generic.DetailView):
|
|||||||
return context
|
return context
|
||||||
|
|
||||||
def _notify_publisher(self, event, editor):
|
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:
|
for recipient in recipients:
|
||||||
if recipient.email:
|
if recipient.email:
|
||||||
email = emails.EventRegistrationClosedMail(recipient=recipient, event=event, editor=editor)
|
email = emails.EventRegistrationClosedMail(recipient=recipient, event=event, editor=editor)
|
||||||
|
|||||||
Reference in New Issue
Block a user