feat: 完成返工交接2

This commit is contained in:
caoqianming 2024-07-22 15:32:23 +08:00
parent 9c67675ca7
commit ec0df66542
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ class HandoverSerializer(CustomModelSerializer):
def validate(self, attrs): def validate(self, attrs):
if 'type' not in attrs: if 'type' not in attrs:
attrs['type'] == Handover.H_NORMAL attrs['type'] = Handover.H_NORMAL
wm:WMaterial = attrs['wm'] wm:WMaterial = attrs['wm']
material = wm.material material = wm.material
attrs['material'] = wm.material attrs['material'] = wm.material