Added 'consent' to the fields handled when merging person records.
- Legacy-Id: 15488
This commit is contained in:
parent
29ae7809d7
commit
bf3b1f7a45
|
@ -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.
Loading…
Reference in a new issue