test init bug
This commit is contained in:
parent
1d8cdb4c5c
commit
424fa529f0
|
@ -223,6 +223,8 @@ class WProductViewSet(ListModelMixin, GenericViewSet):
|
|||
elif wproduct.act_state == WProduct.WPR_ACT_STATE_TOCOMBTEST:
|
||||
savedict['type'] = TestRecord.TEST_COMB
|
||||
tr = TestRecord.objects.create(**savedict)
|
||||
wproduct.test = tr
|
||||
wproduct.save()
|
||||
# 创建检验条目
|
||||
for i in RecordFormField.objects.filter(form=form, is_deleted=False):
|
||||
tri = TestRecordItem()
|
||||
|
|
Loading…
Reference in New Issue