fix: clone workflow custom fields correctly
This commit is contained in:
parent
076eb4fc98
commit
e1020f4a96
|
|
@ -161,7 +161,7 @@ class WorkflowViewSet(CustomModelViewSet):
|
|||
cf.workflow = wf_new
|
||||
for f in CustomField._meta.fields:
|
||||
if f.name not in ['workflow', 'create_time', 'update_time', 'id']:
|
||||
setattr(sta, f.name, getattr(s, f.name))
|
||||
setattr(cf, f.name, getattr(c, f.name))
|
||||
cf.save()
|
||||
for t in Transition.objects.filter(workflow=wf):
|
||||
tr = Transition()
|
||||
|
|
|
|||
Loading…
Reference in New Issue