SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 86aedf24 authored by George Katsikas's avatar George Katsikas :goat:
Browse files

add merge profile inheritance of orcid and webpage

parent 243419d9
No related branches found
No related tags found
No related merge requests found
...@@ -198,9 +198,9 @@ class ProfileMergeForm(forms.Form): ...@@ -198,9 +198,9 @@ class ProfileMergeForm(forms.Form):
profile_old: "Profile" = self.cleaned_data["to_merge"] profile_old: "Profile" = self.cleaned_data["to_merge"]
# Merge information from old to new Profile. # Merge information from old to new Profile.
if profile.orcid_id is None: if profile.orcid_id == "":
profile.orcid_id = profile_old.orcid_id profile.orcid_id = profile_old.orcid_id
if profile.webpage is None: if profile.webpage == "":
profile.webpage = profile_old.webpage profile.webpage = profile_old.webpage
if profile.acad_field is None: if profile.acad_field is None:
profile.acad_field = profile_old.acad_field profile.acad_field = profile_old.acad_field
......
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