diff --git a/journals/views.py b/journals/views.py index 5b20e8551f021012b9b437d6d56e0f3e47e4eed5..fe649dbec4efa4a0a55a75ff65eae69150d3525c 100644 --- a/journals/views.py +++ b/journals/views.py @@ -253,7 +253,7 @@ def validate_publication(request): initial_path = publication.pdf_file.path new_dir = (settings.MEDIA_ROOT + publication.in_issue.path + '/' + publication.get_paper_nr()) - new_path = new_dir + '/' + publication.complete_doi_string.replace('.', '_') + '.pdf' + new_path = new_dir + '/' + publication.doi_string.replace('.', '_') + '.pdf' os.makedirs(new_dir) os.rename(initial_path, new_path) publication.pdf_file.name = new_path