Merged in [9715] from rcross@amsl.com:
Update merge-person script to handle contraints and roles.
- Legacy-Id: 9724
Note: SVN reference [9715] has been migrated to Git commit 5dfe492cfb
This commit is contained in:
commit
73a022cdb5
|
@ -61,6 +61,16 @@ for message in source.message_set.all():
|
||||||
message.by = target
|
message.by = target
|
||||||
message.save()
|
message.save()
|
||||||
|
|
||||||
|
# merge Constraints
|
||||||
|
for constraint in source.constraint_set.all():
|
||||||
|
constraint.person = target
|
||||||
|
constraint.save()
|
||||||
|
|
||||||
|
# merge Roles
|
||||||
|
for role in source.role_set.all():
|
||||||
|
role.person = target
|
||||||
|
role.save()
|
||||||
|
|
||||||
# check for any remaining relationships and delete if none
|
# check for any remaining relationships and delete if none
|
||||||
objs = [source]
|
objs = [source]
|
||||||
opts = Person._meta
|
opts = Person._meta
|
||||||
|
|
Loading…
Reference in a new issue