From 9b5d403f99b53a5f49a7380f8fdb060a46e576af Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Thu, 6 Dec 2018 07:58:50 +0100 Subject: [PATCH] Fix resubmissoin preprint id --- submissions/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submissions/forms.py b/submissions/forms.py index a5b56969a..af9e2eecb 100644 --- a/submissions/forms.py +++ b/submissions/forms.py @@ -431,7 +431,7 @@ class SubmissionForm(forms.ModelForm): self.scipost_identifier = None if 'identifier_w_vn_nr' not in cleaned_data: self.service.identifier, self.scipost_identifier = generate_new_scipost_identifier( - cleaned_data.get('resubmission', None)) + cleaned_data.get('is_resubmission_of', None)) # Also copy to the form data self.cleaned_data['identifier_w_vn_nr'] = self.service.identifier -- GitLab