forked from CGM_Public/pretix_original
Fix AttributeError in sendmail form
PRETIXEU-1NQ
This commit is contained in:
@@ -97,8 +97,10 @@ class SenderView(EventPermissionRequiredMixin, FormView):
|
||||
))
|
||||
if len(ql) == 2:
|
||||
opq = opq.filter(ql[0] | ql[1])
|
||||
else:
|
||||
elif ql:
|
||||
opq = opq.filter(ql[0])
|
||||
else:
|
||||
opq = opq.none()
|
||||
|
||||
if form.cleaned_data.get('subevent'):
|
||||
opq = opq.filter(subevent=form.cleaned_data.get('subevent'))
|
||||
|
||||
Reference in New Issue
Block a user