From 4319e15f133df118da44ed51de7e32b7e4ca39ba Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Mon, 19 Nov 2018 11:28:59 +0100 Subject: [PATCH] Add CitationNotification to Contributor merge --- scipost/forms.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scipost/forms.py b/scipost/forms.py index 9a2a80710..f2c7ed99a 100644 --- a/scipost/forms.py +++ b/scipost/forms.py @@ -40,6 +40,7 @@ from colleges.models import Fellowship, PotentialFellowshipEvent from commentaries.models import Commentary from comments.models import Comment from funders.models import Grant +from invitations.models import CitationNotification from journals.models import PublicationAuthorsTable, Publication from mails.utils import DirectMailUtil from submissions.models import Submission, EditorialAssignment, RefereeInvitation, Report, \ @@ -475,6 +476,8 @@ class ContributorMergeForm(forms.Form): Comment.objects.filter(vetted_by=contrib_from).update(vetted_by=contrib_into) Comment.objects.filter(author=contrib_from).update(author=contrib_into) Grant.objects.filter(recipient=contrib_from).update(recipient=contrib_into) + CitationNotification.objects.filter( + contributor=contrib_from).update(contributor=contrib_into) PublicationAuthorsTable.objects.filter( contributor=contrib_from).update(contributor=contrib_into) UnavailabilityPeriod.objects.filter( -- GitLab