From 38096a9efe6d26ef4c6217b797dfb036d69af016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E5=89=8D=E6=98=8E?= <909355014@qq.com> Date: Wed, 22 Jun 2022 14:35:42 +0800 Subject: [PATCH] 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 ad82634..1a15fa7 100644 --- a/hb_server/apps/wpm/views.py +++ b/hb_server/apps/wpm/views.py @@ -213,7 +213,7 @@ class WProductViewSet(ListModelMixin, RetrieveModelMixin, GenericViewSet): elif wproduct.act_state == WProduct.WPR_ACT_STATE_TOCOMBTEST: savedict['type'] = TestRecord.TEST_COMB elif wproduct.act_state == WProduct.WPR_ACT_STATE_TOTEST: - if UsedStep.objects.filter(subproduction=wproduct.subproduction_plan.suproduction).first().need_test: + if UsedStep.objects.filter(subproduction=wproduct.subproduction_plan.subproduction).first().need_test: savedict['is_midtesting'] = True tr = TestRecord.objects.create(**savedict) # 更新wproduct