SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit b03eaaaa authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Update ProfileMergeForm for new PublicationAuthorsTable field

parent 11f6741b
No related branches found
No related tags found
No related merge requests found
...@@ -141,6 +141,9 @@ class ProfileMergeForm(forms.Form): ...@@ -141,6 +141,9 @@ class ProfileMergeForm(forms.Form):
# Move all affiliations to the "new" profile # Move all affiliations to the "new" profile
profile_old.affiliations.all().update(profile=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 # Move all invitations to the "new" profile
profile_old.refereeinvitation_set.all().update(profile=profile) profile_old.refereeinvitation_set.all().update(profile=profile)
profile_old.registrationinvitation_set.all().update(profile=profile) profile_old.registrationinvitation_set.all().update(profile=profile)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment