SciPost Code Repository

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

Auto-add first_author (unreg) to authors (unreg) in validate_pub

parent c448e4e8
No related branches found
No related tags found
No related merge requests found
......@@ -248,6 +248,10 @@ def validate_publication(request):
#publication.pdf_file = request.FILES['pdf_file']
submission = publication.accepted_submission
publication.authors.add(*submission.authors.all())
if publication.first_author:
publication.authors.add(publication.first_author)
if publication.first_author_unregistered:
publication.authors_unregistered.add(publication.first_author_unregistered)
publication.authors_claims.add(*submission.authors_claims.all())
publication.authors_false_claims.add(*submission.authors_false_claims.all())
publication.save()
......
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