From ec0df66542fa2bb28c66065d87a97f754601fa79 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Mon, 22 Jul 2024 15:32:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90=E8=BF=94=E5=B7=A5?= =?UTF-8?q?=E4=BA=A4=E6=8E=A52?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wpm/serializers.py b/apps/wpm/serializers.py index 03ae8107..e3b2e16a 100644 --- a/apps/wpm/serializers.py +++ b/apps/wpm/serializers.py @@ -434,7 +434,7 @@ class HandoverSerializer(CustomModelSerializer): def validate(self, attrs): if 'type' not in attrs: - attrs['type'] == Handover.H_NORMAL + attrs['type'] = Handover.H_NORMAL wm:WMaterial = attrs['wm'] material = wm.material attrs['material'] = wm.material