From a432dca39b108e8b79688680eb019d788aa84a35 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 12 Dec 2024 11:18:07 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20mgroup=E6=B7=BB=E5=8A=A0=E6=9F=A5?= =?UTF-8?q?=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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/mtm/views.py b/apps/mtm/views.py index cdc3dad0..e878d779 100644 --- a/apps/mtm/views.py +++ b/apps/mtm/views.py @@ -102,7 +102,8 @@ class MgroupViewSet(CustomModelViewSet): "process": ["exact"], "cate": ["exact"], "belong_dept__name": ["exact", "contains"], - "name": ["exact", "contains"] + "name": ["exact", "contains"], + "code": ["exact", "in", "isnull"] } search_fields = ['name'] ordering = ['sort', 'create_time']