fix: mlogserializer bug

This commit is contained in:
caoqianming 2023-11-01 09:35:09 +08:00
parent d65b88157c
commit 3750ea0f2a
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class MlogSerializer(CustomModelSerializer):
source='equipment_2.name', read_only=True)
shift_name = serializers.CharField(source='shift.name', read_only=True)
material_outs = MlogbSerializer(
label='多产出件信息', many=True, source='mlog_material_outs')
label='多产出件信息', many=True, source='material_outs')
class Meta:
model = Mlog