feat: 目标增加code查询条件

This commit is contained in:
caoqianming 2023-07-25 11:14:32 +08:00
parent e15cc2f9ce
commit 6c3cbf0c5e
1 changed files with 1 additions and 1 deletions

View File

@ -67,5 +67,5 @@ class GoalViewSet(CustomModelViewSet):
queryset = Goal.objects.all()
serializer_class = GoalSerializer
select_related_fields = ['mgroup', 'product', 'team', 'goal_cate']
filterset_fields = ['mgroup', 'product', 'team', 'goal_cate', 'year']
filterset_fields = ['mgroup', 'product', 'team', 'goal_cate', 'year', 'goal_cate__code']
search_fields = ['name']