From 6f4f5d1f5d193b7fabbd6e4b63396219d1b213bd Mon Sep 17 00:00:00 2001 From: Mauro MSL Date: Wed, 2 Apr 2025 16:03:50 +0100 Subject: [PATCH] Update copy_articles.py --- management/commands/copy_articles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/management/commands/copy_articles.py b/management/commands/copy_articles.py index 68910e2..b64d8d3 100644 --- a/management/commands/copy_articles.py +++ b/management/commands/copy_articles.py @@ -317,13 +317,13 @@ def create_pub_id(self, source_article, target_article): } ) - def create_doi(self, target_article): + def create_doi(self, old_article, target_article): doi_prefix = setting_handler.get_setting( 'Identifiers', 'crossref_prefix', target_article.journal).value doi_suffix = render_template.get_requestless_content( - {'article': target_article}, + {'article': old_article}, target_article.journal, 'doi_pattern', group_name='Identifiers'