From 74fb464d5d05dccbff5677a4510980aaa1b67d5d Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 10 Feb 2022 14:00:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=98=E5=9C=A8=E6=9C=AA=E5=A1=AB=E5=86=99?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/qm/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hb_server/apps/qm/views.py b/hb_server/apps/qm/views.py index 245f0cb..2303ff9 100644 --- a/hb_server/apps/qm/views.py +++ b/hb_server/apps/qm/views.py @@ -89,7 +89,7 @@ class TestRecordViewSet(ListModelMixin, UpdateModelMixin, RetrieveModelMixin, De if obj.type != TestRecord.TEST_PROCESS_RE and obj.is_midtesting is False: items_not = TestRecordItem.objects.filter(field_value__isnull=True, is_hidden=False, test_record=obj) if items_not.exists(): - raise exceptions.APIException('存在未填写项目:'+ ','.join(list(items_not.values_list('form_field__name', flat=True)))) + raise exceptions.APIException('存在未填写项目:'+ ','.join(list(items_not.values_list('form_field__field_name', flat=True)))) with transaction.atomic(): obj.is_submited=True obj.save()