SciPost Code Repository

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

Merge branch 'hotfix_JSC_20170220'

parents e44af30a ea23e9b4
No related branches found
No related tags found
No related merge requests found
......@@ -222,7 +222,7 @@ def validate_publication(request):
publication.save()
# Move file to final location
initial_path = publication.pdf_file.path
new_dir = (publication.in_issue.path + '/'
new_dir = (settings.MEDIA_ROOT + publication.in_issue.path + '/'
+ paper_nr_string(publication.paper_nr))
new_path = new_dir + '/' + publication.doi_label.replace('.', '_') + '.pdf'
os.makedirs(new_dir)
......@@ -242,8 +242,7 @@ def validate_publication(request):
return render(request, 'scipost/acknowledgement.html', context)
else:
errormessage = 'The form was invalid.'
context = {'publication': publication,
'validate_publication_form': validate_publication_form,
context = {'validate_publication_form': validate_publication_form,
'errormessage': errormessage}
return render(request, 'journals/validate_publication.html', context)
else:
......
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