SciPost Code Repository

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

Ensure mapping of `SubmissionAuthorProfile` FK when merging Profiles

parent 048bc4bd
No related branches found
No related tags found
No related merge requests found
...@@ -176,6 +176,9 @@ class ProfileMergeForm(forms.Form): ...@@ -176,6 +176,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 SubmissionAuthorProfile instances to the "new" profile
profile_old.submissionauthorprofile_set.all().update(profile=profile)
# Move all PublicationAuthorsTable instances to the "new" profile # Move all PublicationAuthorsTable instances to the "new" profile
profile_old.publicationauthorstable_set.all().update(profile=profile) profile_old.publicationauthorstable_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