diff --git a/hb_server/apps/wpm/serializers.py b/hb_server/apps/wpm/serializers.py index 74b9ba7..ca3da1d 100644 --- a/hb_server/apps/wpm/serializers.py +++ b/hb_server/apps/wpm/serializers.py @@ -291,15 +291,6 @@ class WpmTestRecordCreateSerializer(serializers.ModelSerializer): class Meta: model = TestRecord fields = ['form', 'record_data', 'is_testok', 'wproduct'] - - def validate(self, attrs): - wproduct = attrs['wproduct'] - if wproduct.act_state == WProduct.WPR_ACT_STATE_TORETEST: - if 'origin_test' in attrs and attrs['origin_test']: - pass - else: - raise exceptions.APIException('复检需提供原检测记录ID') - return super().validate(attrs) class WpmTestFormInitSerializer(serializers.Serializer): wproduct = serializers.PrimaryKeyRelatedField(queryset=WProduct.objects.all(), required=True)