From 02d672a39dbea3afb74c547da958afb43c9e0566 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Wed, 26 Jun 2024 10:11:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0mpoint=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/enm/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/enm/views.py b/apps/enm/views.py index 21543000..f80f3edc 100644 --- a/apps/enm/views.py +++ b/apps/enm/views.py @@ -37,7 +37,8 @@ class MpointViewSet(CustomModelViewSet): "need_display": ["exact"], "formula": ["exact", "contains"], "material": ["exact"], - "material__code": ["exact", "in"] + "material__code": ["exact", "in"], + "code": ["exact", "contains"], } search_fields = ["name", "code"]