fix: ftest中type设置为必填

This commit is contained in:
caoqianming 2024-03-01 15:34:56 +08:00
parent ab3bcee0f8
commit 2a3bcc1b33
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class FtestSerializer(CustomModelSerializer):
class Meta:
model = Ftest
fields = '__all__'
read_only_fields = EXCLUDE_FIELDS + ['type']
read_only_fields = EXCLUDE_FIELDS
def validate(self, attrs):
ftest_work = attrs.get('ftest_work', None)