mirror of
https://github.com/pretix/pretix.git
synced 2026-04-29 00:12:38 +00:00
Sendmail: Fix invalid state if attachment is adde then removed
This commit is contained in:
@@ -229,7 +229,8 @@ class SenderView(EventPermissionRequiredMixin, FormView):
|
||||
'checkin_lists': [i.pk for i in form.cleaned_data.get('checkin_lists')],
|
||||
'filter_checkins': form.cleaned_data.get('filter_checkins'),
|
||||
}
|
||||
if form.cleaned_data.get('attachment') is not None:
|
||||
attachment = form.cleaned_data.get('attachment')
|
||||
if attachment is not None and attachment is not False:
|
||||
kwargs['attachments'] = [form.cleaned_data['attachment'].id]
|
||||
|
||||
send_mails.apply_async(
|
||||
|
||||
Reference in New Issue
Block a user