fix: handoverserializer 关于new_wm的处理2
This commit is contained in:
parent
041474411e
commit
07134f32bb
|
|
@ -1255,7 +1255,7 @@ class HandoverSerializer(CustomModelSerializer):
|
|||
next_mat = None
|
||||
next_state = None
|
||||
next_defect = None
|
||||
if new_wm:
|
||||
if new_wm and attrs["type"] != Handover.H_CHANGE:
|
||||
next_mat = new_wm.material
|
||||
next_state = new_wm.state
|
||||
next_defect = new_wm.defect
|
||||
|
|
|
|||
Loading…
Reference in New Issue