From 68dc76d7a157beb8364db5ce6e76b1801b1999c6 Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Sun, 15 Oct 2017 23:22:48 +0200 Subject: [PATCH] Pool construction part 4B --- journals/constants.py | 1 - submissions/forms.py | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/journals/constants.py b/journals/constants.py index 3c1d7b5b1..2d78718e6 100644 --- a/journals/constants.py +++ b/journals/constants.py @@ -8,7 +8,6 @@ SCIPOST_JOURNAL_PHYSICS_PROC = 'SciPostPhysProc' SCIPOST_JOURNALS_SUBMIT = ( (SCIPOST_JOURNAL_PHYSICS, 'SciPost Physics'), (SCIPOST_JOURNAL_PHYSICS_LECTURE_NOTES, 'SciPost Physics Lecture Notes'), - (SCIPOST_JOURNAL_PHYSICS_PROC, 'SciPost Proceedings') ) # Journal closed for submission diff --git a/submissions/forms.py b/submissions/forms.py index 07768c64a..c976c3470 100644 --- a/submissions/forms.py +++ b/submissions/forms.py @@ -263,6 +263,10 @@ class RequestSubmissionForm(SubmissionChecks, forms.ModelForm): qs = self.fields['proceeding'].queryset.open_for_submission() self.fields['proceeding'].queryset = qs self.fields['proceeding'].empty_label = None + if qs.count() > 0: + # Open the proceedings Journal for submission + self.fields['submitted_to_journal'].choices += ( + (SCIPOST_JOURNAL_PHYSICS_PROC, 'SciPost Proceedings'),) # Update placeholder for the other fields self.fields['arxiv_link'].widget.attrs.update({ -- GitLab