SciPost Code Repository

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

Debug contributor merge: opinions on comments were removed

parent 64a63d17
No related branches found
No related tags found
No related merge requests found
......@@ -597,18 +597,6 @@ class ContributorMergeForm(forms.Form):
for commentary in commentaries:
commentary.authors_false_claims.remove(contrib_from)
commentary.authors_false_claims.add(contrib_into)
comments = Comment.objects.filter(in_agreement__in=[contrib_from,]).all()
for comment in comments:
comment.in_agreement.remove(contrib_from)
comment.in_agreement.add(contrib_into)
comments = Comment.objects.filter(in_notsure__in=[contrib_from,]).all()
for comment in comments:
comment.in_notsure.remove(contrib_from)
comment.in_notsure.add(contrib_into)
comments = Comment.objects.filter(in_disagreement__in=[contrib_from,]).all()
for comment in comments:
comment.in_disagreement.remove(contrib_from)
comment.in_disagreement.add(contrib_into)
publications = Publication.objects.filter(authors_claims__in=[contrib_from,]).all()
for publication in publications:
publication.authors_claims.remove(contrib_from)
......
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