批量创建日志bug

This commit is contained in:
caoqianming 2022-03-16 16:52:27 +08:00
parent 8859c13edf
commit 178898a919
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ class WpmService(object):
for i in instances: for i in instances:
ins = WproductFlow() ins = WproductFlow()
ins.wproduct = i ins.wproduct = i
for f in WproductFlow.__meta.fields: for f in WproductFlow._meta.fields:
if f.name not in ['id', 'wproduct', 'is_lastlog']: if f.name not in ['id', 'wproduct', 'is_lastlog']:
setattr(ins, f.name, getattr(i, f.name, None)) setattr(ins, f.name, getattr(i, f.name, None))
ins.change_str = change_str ins.change_str = change_str