From e5d9582684caa01ebff1f12c9c0f34d1f88ff3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20K=C3=BCnsem=C3=B6ller?= <jkuensem@physik.uni-bielefeld.de> Date: Tue, 5 Mar 2024 18:33:25 +0100 Subject: [PATCH] TMSS-2947: change project category filter to single choice filter to work around bug --- .../src/tmss/workflowapp/viewsets/schedulingunitflow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SAS/TMSS/backend/src/tmss/workflowapp/viewsets/schedulingunitflow.py b/SAS/TMSS/backend/src/tmss/workflowapp/viewsets/schedulingunitflow.py index 44fc71088ef..78adf2e6ab7 100644 --- a/SAS/TMSS/backend/src/tmss/workflowapp/viewsets/schedulingunitflow.py +++ b/SAS/TMSS/backend/src/tmss/workflowapp/viewsets/schedulingunitflow.py @@ -117,8 +117,8 @@ class SchedulingUnitTaskFilter(property_filters.PropertyFilterSet): owner_username = filters.CharFilter(field_name='owner__username', lookup_expr='icontains') owner_username_isnull = filters.BooleanFilter(label='owner_username [isnull]', field_name='owner__username', lookup_expr='isnull') project_name = property_filters.PropertyCharFilter(field_name='project__name', lookup_expr='icontains') - project_category = property_filters.PropertyMultipleChoiceFilter(label='project category [any]', field_name='project__project_category', choices=[(c.value, c.value) for c in ProjectCategory.Choices]) - scheduling_unit_status = filters.MultipleChoiceFilter(label='scheduling unit status [any]', field_name='process__schedulingunitprocess__su__status', choices=[(c.value, c.value) for c in SchedulingUnitStatus.Choices]) + project_category = property_filters.PropertyChoiceFilter(label='project category', field_name='project__project_category', choices=[(c.value, c.value) for c in ProjectCategory.Choices]) + scheduling_unit_status = filters.MultipleChoiceFilter(label='scheduling unit status [any]', field_name='process__schedulingunitprocess__su__status', choices=[(c.value, c.value) for c in SchedulingUnitStatus.Choices], lookup_expr='iexact') scheduling_unit_id = NumberInFilter(field_name='process__schedulingunitprocess__su__id', lookup_expr='in') scheduling_unit_name = filters.CharFilter(field_name='process__schedulingunitprocess__su__name', lookup_expr='icontains') -- GitLab