diff --git a/journals/constants.py b/journals/constants.py index 3c1d7b5b173d7d7468dc6758ab0621abbb99ea34..2d78718e632b200f66c5166ae3ce80315b27dc68 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 07768c64a2d6bbfb2ba2c6279e9235fb51a6e74c..c976c3470a546858ad06947769e1998c524349e2 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({