From edf5b7bb8c8d6be32fe49ebff502788df3e6fc8e Mon Sep 17 00:00:00 2001 From: Aaron Kable Date: Fri, 9 Jan 2026 09:36:51 +0800 Subject: [PATCH] colum control is & --- allianceauth/framework/datatables.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/allianceauth/framework/datatables.py b/allianceauth/framework/datatables.py index 229bc50d..18c962f2 100644 --- a/allianceauth/framework/datatables.py +++ b/allianceauth/framework/datatables.py @@ -61,16 +61,16 @@ class DataTablesView(View): """text, date, num""" _type = str(c["columnControl"]["search"]["type"]) if _logic == "empty": - filter_qs |= Q(**{f'{_c}': ""}) + filter_qs &= Q(**{f'{_c}': ""}) elif len(_sv) > 0: if _logic == "contains": - filter_qs |= Q(**{f'{_c}__icontains': _sv}) + filter_qs &= Q(**{f'{_c}__icontains': _sv}) elif _logic == "starts": - filter_qs |= Q(**{f'{_c}__istartswith': _sv}) + filter_qs &= Q(**{f'{_c}__istartswith': _sv}) elif _logic == "ends": - filter_qs |= Q(**{f'{_c}__iendswith': _sv}) + filter_qs &= Q(**{f'{_c}__iendswith': _sv}) elif _logic == "equal": - filter_qs |= Q(**{f'{_c}': _sv}) + filter_qs &= Q(**{f'{_c}': _sv}) else: _sv = str(c["search"]["value"])