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()