From d3ae9d4a7936573520aad177fee6b45f7f1ddc57 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 1 Mar 2024 15:57:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mgroup=E7=AD=9B=E9=80=89bug?= 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 d003d8b4..c3d7eb18 100644 --- a/apps/mtm/views.py +++ b/apps/mtm/views.py @@ -74,7 +74,7 @@ class MgroupViewSet(CustomModelViewSet): "belong_dept__name": ["exact", "contains"], "name": ["exact", "contains"] } - search_fields = ['number'] + search_fields = ['name'] ordering = ['sort', 'create_time']