forked from CGM_Public/pretix_original
Add checkin requires attention to advanced order search (#3226)
Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
@@ -569,6 +569,12 @@ class EventOrderExpertFilterForm(EventOrderFilterForm):
|
|||||||
label=_('Sales channel'),
|
label=_('Sales channel'),
|
||||||
required=False,
|
required=False,
|
||||||
)
|
)
|
||||||
|
checkin_attention = forms.NullBooleanField(
|
||||||
|
required=False,
|
||||||
|
widget=FilterNullBooleanSelect,
|
||||||
|
label=_('Requires special attention'),
|
||||||
|
help_text=_('Only matches orders with the attention checkbox set directly for the order, not based on the product.'),
|
||||||
|
)
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(*args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
@@ -689,6 +695,8 @@ class EventOrderExpertFilterForm(EventOrderFilterForm):
|
|||||||
qs = qs.filter(total=fdata.get('total'))
|
qs = qs.filter(total=fdata.get('total'))
|
||||||
if fdata.get('email_known_to_work') is not None:
|
if fdata.get('email_known_to_work') is not None:
|
||||||
qs = qs.filter(email_known_to_work=fdata.get('email_known_to_work'))
|
qs = qs.filter(email_known_to_work=fdata.get('email_known_to_work'))
|
||||||
|
if fdata.get('checkin_attention') is not None:
|
||||||
|
qs = qs.filter(checkin_attention=fdata.get('checkin_attention'))
|
||||||
if fdata.get('locale'):
|
if fdata.get('locale'):
|
||||||
qs = qs.filter(locale=fdata.get('locale'))
|
qs = qs.filter(locale=fdata.get('locale'))
|
||||||
if fdata.get('payment_sum_min') is not None:
|
if fdata.get('payment_sum_min') is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user