From b03eaaaac1dd6117a7de89c80608dcbda1094a60 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Wed, 3 Apr 2019 19:37:51 +0200 Subject: [PATCH] Update ProfileMergeForm for new PublicationAuthorsTable field --- profiles/forms.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profiles/forms.py b/profiles/forms.py index 59dd7b319..167b101e4 100644 --- a/profiles/forms.py +++ b/profiles/forms.py @@ -141,6 +141,9 @@ class ProfileMergeForm(forms.Form): # Move all affiliations to the "new" profile profile_old.affiliations.all().update(profile=profile) + # Move all PublicationAuthorsTable instances to the "new" profile + profile_old.publicationauthorstable_set.all().update(profile=profile) + # Move all invitations to the "new" profile profile_old.refereeinvitation_set.all().update(profile=profile) profile_old.registrationinvitation_set.all().update(profile=profile) -- GitLab