From 6c3cbf0c5e534badd6951b83142f5916f6d06189 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 25 Jul 2023 11:14:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=9B=AE=E6=A0=87=E5=A2=9E=E5=8A=A0cod?= =?UTF-8?q?e=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/mtm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/mtm/views.py b/apps/mtm/views.py index 868b7916..aaa987ea 100644 --- a/apps/mtm/views.py +++ b/apps/mtm/views.py @@ -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'] \ No newline at end of file