From 4c5bbc00b339058edefe32845439dae17dac75e7 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 3 Dec 2021 09:15:01 +0800 Subject: [PATCH] =?UTF-8?q?wproduct=E5=A2=9E=E5=8A=A0material=5Ftype?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index ae57705..fc3653d 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -179,7 +179,7 @@ class WProductViewSet(ListModelMixin, GenericViewSet): perms_map={'*':'*'} queryset = WProduct.objects.select_related('step', 'material').filter(is_hidden=False) serializer_class = WProductListSerializer - filterset_fields = ['step', 'subproduction_plan', 'material', 'step__process', 'act_state'] + filterset_fields = ['step', 'subproduction_plan', 'material', 'step__process', 'act_state', 'material__type'] search_fields = ['number'] ordering_fields = ['id'] ordering = ['id']