From f21a599252bca7020364129a2ebe7cc80fb665fb Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 19 Nov 2021 11:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=A6=E9=97=B4=E6=93=8D=E4=BD=9C=E5=88=9B?= =?UTF-8?q?=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hb_server/apps/wpm/views.py b/hb_server/apps/wpm/views.py index 1e4d2c8..df7aa0d 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -313,8 +313,7 @@ class OperationViewSet(ListModelMixin, RetrieveModelMixin, CreateModelMixin, Gen opr.is_filled = False opr.save() # 查询需要使用的生产设备 - equips = step.equipments - for i in equips: + for i in step.equipments.all(): ope = OperationEquip() ope.operation = op ope.equip = i