From 4f318d823ab7e62dadfc07be9e917834d3935cf9 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 25 Dec 2023 10:18:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20mio=E5=A2=9E=E5=8A=A0item=5Fmio=5F=5Fma?= =?UTF-8?q?terial=5F=5Ftype=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/inm/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/inm/views.py b/apps/inm/views.py index 00cb5f35..9c6848ca 100644 --- a/apps/inm/views.py +++ b/apps/inm/views.py @@ -128,7 +128,9 @@ class MIOViewSet(CustomModelViewSet): 'state': ["exact", "in"], "type": ["exact", "in"], "pu_order": ["exact"], - "order": ["exact"] + "order": ["exact"], + "item_mio__material": ["exact"], + "item_mio__material__type": ["exact", "in"] } search_fields = ['number'] data_filter = True