From 6aeb82b06a41d0e74760cd3562a3ae2db0994f32 Mon Sep 17 00:00:00 2001 From: robbi5 Date: Mon, 17 Apr 2023 09:36:17 +0200 Subject: [PATCH] Add checkin requires attention to advanced order search (#3226) Co-authored-by: Raphael Michel --- src/pretix/control/forms/filter.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pretix/control/forms/filter.py b/src/pretix/control/forms/filter.py index e660aac24b..06c2ea755d 100644 --- a/src/pretix/control/forms/filter.py +++ b/src/pretix/control/forms/filter.py @@ -569,6 +569,12 @@ class EventOrderExpertFilterForm(EventOrderFilterForm): label=_('Sales channel'), 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): super().__init__(*args, **kwargs) @@ -689,6 +695,8 @@ class EventOrderExpertFilterForm(EventOrderFilterForm): qs = qs.filter(total=fdata.get('total')) if fdata.get('email_known_to_work') is not None: 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'): qs = qs.filter(locale=fdata.get('locale')) if fdata.get('payment_sum_min') is not None: