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

TMSS-2947: add additonal filters

parent 69e932a9
No related branches found
No related tags found
1 merge request!1341Resolve TMSS-2947
......@@ -117,8 +117,10 @@ 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__category', choices=[(c.value, c.value) for c in ProjectCategory.Choices])
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])
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')
def filter_flow_task(self, queryset, name, values):
ids = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment