From cb595711feafd10281c7ce6817dadd24ebd24b26 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 21 Jan 2022 08:59:06 +0800 Subject: [PATCH] wpm wproduct list bug --- 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 47c49dc..e300f40 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -148,7 +148,7 @@ class WProductViewSet(ListModelMixin, RetrieveModelMixin, GenericViewSet): """ perms_map = {'*': '*'} queryset = WProduct.objects.select_related('step', 'material', - 'subproduction_plan', 'warehouse', 'order').prefetch_related('wproduct_child') + 'subproduction_plan', 'warehouse', 'to_order').prefetch_related('wproduct_child') serializer_class = WProductListSerializer filterset_class = WProductFilterSet search_fields = ['number']