feat: MIOItemCreateSerializer wproducts设置为非必填
This commit is contained in:
parent
b50cbcbc92
commit
f6fe704f65
|
@ -105,7 +105,7 @@ class MIOItemwSerializer(CustomModelSerializer):
|
||||||
class MIOItemCreateSerializer(CustomModelSerializer):
|
class MIOItemCreateSerializer(CustomModelSerializer):
|
||||||
assemb = MIOItemACreateSerializer(
|
assemb = MIOItemACreateSerializer(
|
||||||
label='组合件信息', many=True, write_only=True, required=False)
|
label='组合件信息', many=True, write_only=True, required=False)
|
||||||
wproducts = MIOItemwCreateSerializer(many=True)
|
wproducts = MIOItemwCreateSerializer(many=True, required=False)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
model = MIOItem
|
model = MIOItem
|
||||||
|
|
Loading…
Reference in New Issue