diff --git a/apps/pm/filters.py b/apps/pm/filters.py index 81499356..417ae4a0 100644 --- a/apps/pm/filters.py +++ b/apps/pm/filters.py @@ -21,6 +21,7 @@ class UtaskFilter(filters.FilterSet): "belong_dept__name": ["exact"], "mgroup__belong_dept__name": ["exact"], "mtask_utask__mgroup": ["exact"], + "mtask_utask__mgroup__name": ["exact"], "mtask_utask__mgroup__belong_dept": ['exact'], "mtask_utask__mgroup__belong_dept__name": ['exact'] } @@ -49,6 +50,7 @@ class MtaskFilter(filters.FilterSet): "start_date": ["exact", "gte", "lte"], "end_date": ["exact", "gte", "lte"], "mgroup": ["exact"], + "mgroup__name": ["exact"], "mgroup__cate": ["exact"], "mgroup__process": ["exact"], "mgroup__process__cate": ["exact"],