fix: 调整数据结构
This commit is contained in:
parent
38dc9199e2
commit
ed80edbef8
|
@ -732,8 +732,8 @@ class MlogbwCreateUpdateSerializer(CustomModelSerializer):
|
||||||
ftest = FtestProcessSerializer(required=False)
|
ftest = FtestProcessSerializer(required=False)
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Mlogbw
|
model = Mlogbw
|
||||||
fields = ["id", "number", "wpr", "note", "mlogb", "ftest", "equip", "work_start_time", "work_end_time", "mlogb_from", "mlogbw_from"]
|
fields = ["id", "number", "wpr", "note", "mlogb", "ftest", "equip", "work_start_time", "work_end_time", "mlogbw_from"]
|
||||||
read_only_fields = ["mlogb_from", "mlogbw_from"]
|
read_only_fields = ["mlogbw_from"]
|
||||||
|
|
||||||
def validate(self, attrs):
|
def validate(self, attrs):
|
||||||
mlogb:Mlogb = attrs["mlogb"]
|
mlogb:Mlogb = attrs["mlogb"]
|
||||||
|
|
Loading…
Reference in New Issue