Added 'consent' to the fields handled when merging person records.

- Legacy-Id: 15488
This commit is contained in:
Henrik Levkowetz 2018-09-27 12:31:29 +00:00
parent 29ae7809d7
commit bf3b1f7a45
2 changed files with 1 additions and 1 deletions

View file

@ -34,7 +34,7 @@ def merge_persons(source, target, file=sys.stdout, verbose=False):
dedupe_aliases(target)
# copy other attributes
for field in ('ascii','ascii_short', 'biography', 'photo', 'photo_thumb', 'name_from_draft'):
for field in ('ascii','ascii_short', 'biography', 'photo', 'photo_thumb', 'name_from_draft', 'consent'):
if getattr(source,field) and not getattr(target,field):
setattr(target,field,getattr(source,field))
target.save()

Binary file not shown.