From af3f487af1e7dc45afa790c47b7cbf5029af3cf2 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:31:38 +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 e69dd92..ad82634 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.subroduction_plan.suproduction).first().need_test: + if UsedStep.objects.filter(subproduction=wproduct.subproduction_plan.suproduction).first().need_test: savedict['is_midtesting'] = True tr = TestRecord.objects.create(**savedict) # 更新wproduct