From afdb894c313aceeb6667345a55819d945337e96c Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Tue, 31 Oct 2017 08:52:04 +0100 Subject: [PATCH] Fix proceedings issue --- submissions/forms.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/submissions/forms.py b/submissions/forms.py index e3f25ca00..855bdd6c4 100644 --- a/submissions/forms.py +++ b/submissions/forms.py @@ -304,7 +304,11 @@ class RequestSubmissionForm(SubmissionChecks, forms.ModelForm): cleaned_data['submitted_to_journal']) if self.cleaned_data['submitted_to_journal'] != SCIPOST_JOURNAL_PHYSICS_PROC: - del self.cleaned_data['proceedings'] + try: + del self.cleaned_data['proceedings'] + except KeyError: + # No proceedings returned to data + return cleaned_data return cleaned_data -- GitLab