Skip to content
Snippets Groups Projects
Commit e5d95826 authored by Jörn Künsemöller's avatar Jörn Künsemöller
Browse files

TMSS-2947: change project category filter to single choice filter to work around bug

parent 56378c97
No related branches found
No related tags found
1 merge request!1341Resolve TMSS-2947
...@@ -117,8 +117,8 @@ class SchedulingUnitTaskFilter(property_filters.PropertyFilterSet): ...@@ -117,8 +117,8 @@ class SchedulingUnitTaskFilter(property_filters.PropertyFilterSet):
owner_username = filters.CharFilter(field_name='owner__username', lookup_expr='icontains') 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') 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_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]) 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]) 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_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') scheduling_unit_name = filters.CharFilter(field_name='process__schedulingunitprocess__su__name', lookup_expr='icontains')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment