fix: mlog create bug
This commit is contained in:
parent
b742fecf50
commit
03f80ed99d
|
|
@ -129,7 +129,8 @@ class MlogSerializer(CustomModelSerializer):
|
|||
handle_user = validated_data['handle_user']
|
||||
if mtask:
|
||||
validated_data['mgroup'] = mtask.mgroup
|
||||
validated_data['material_out'] = mtask.material_out
|
||||
material_out = mtask.material_out
|
||||
validated_data['material_out'] = material_out
|
||||
# if not WMaterial.objects.filter(batch=batch).exists():
|
||||
# raise ValidationError('批次号不存在')
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in New Issue