fix: handoverserializer 关于new_wm的处理2

This commit is contained in:
caoqianming 2025-12-17 15:34:08 +08:00
parent 041474411e
commit 07134f32bb
1 changed files with 1 additions and 1 deletions

View File

@ -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