From feebb616a94bd36da3856b299117daefab9884cc Mon Sep 17 00:00:00 2001 From: caoqianming Date: Thu, 17 Mar 2022 07:17:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E4=BA=A7=E5=93=81=E5=8F=98?= =?UTF-8?q?=E5=8A=A8=E6=97=A5=E5=BF=97bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_server/apps/wpm/services.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hb_server/apps/wpm/services.py b/hb_server/apps/wpm/services.py index 4440122..0058e5d 100644 --- a/hb_server/apps/wpm/services.py +++ b/hb_server/apps/wpm/services.py @@ -162,8 +162,9 @@ class WpmService(object): ins = WproductFlow() ins.wproduct = instance for f in WproductFlow._meta.fields: - if f.name not in ['id', 'wproduct', 'is_lastlog']: + if f.name not in ['id', 'wproduct', 'is_lastlog', 'child']: setattr(ins, f.name, getattr(instance, f.name, None)) + ins.child = instance.child ins.change_str = change_str ins.save() @@ -178,8 +179,9 @@ class WpmService(object): ins = WproductFlow() ins.wproduct = i for f in WproductFlow._meta.fields: - if f.name not in ['id', 'wproduct', 'is_lastlog']: + if f.name not in ['id', 'wproduct', 'is_lastlog', 'child']: setattr(ins, f.name, getattr(i, f.name, None)) + ins.child = i.child ins.change_str = change_str wfw.append(ins) WproductFlow.objects.bulk_create(wfw)