diff --git a/SAS/TMSS/backend/src/tmss/workflowapp/viewsets/schedulingunitflow.py b/SAS/TMSS/backend/src/tmss/workflowapp/viewsets/schedulingunitflow.py index 44fc71088efad94e8000e4957d344e7d7bbc9a5c..78adf2e6ab7ffa0d3f8134a60682cdd47f109711 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')