SciPost Code Repository

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

Correct fetching of associated publication

parent 807cdb6e
No related branches found
No related tags found
No related merge requests found
......@@ -1278,7 +1278,8 @@ def email_object_made_citable(request, **kwargs):
publication_citation=None
publication_doi=None
try:
publication=Publication.objects.get(doi_label=_object.associated_published_doi)
publication=Publication.objects.get(
accepted_submission__arxiv_identifier_wo_vn_nr=_object.submission.arxiv_identifier_wo_vn_nr)
publication_ciation = publication.citation()
publication_doi = publication.doi_string
except Publication.DoesNotExist:
......
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