From 98c35847100e379f4e1d7713bfd9163a9991d12f Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 27 Nov 2023 15:14:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20mgroup=E5=A2=9E=E5=8A=A0=E7=AD=9B?= =?UTF-8?q?=E9=80=89=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 4e16b577..62f47fd6 100644 --- a/apps/mtm/views.py +++ b/apps/mtm/views.py @@ -51,7 +51,7 @@ class MgroupViewSet(CustomModelViewSet): queryset = Mgroup.objects.all() serializer_class = MgroupSerializer select_related_fields = ['create_by', 'belong_dept', 'process'] - filterset_fields = ['belong_dept', 'process', 'cate'] + filterset_fields = ['belong_dept', 'process', 'cate', 'belong_dept__name'] search_fields = ['number'] ordering = ['sort', 'create_time']