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:
Henrik Levkowetz 2015-07-15 11:14:15 +00:00
commit 73a022cdb5

View file

@ -61,6 +61,16 @@ for message in source.message_set.all():
message.by = target
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
objs = [source]
opts = Person._meta