SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 68dc76d7 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Pool construction part 4B

parent 4f6ad46a
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,6 @@ SCIPOST_JOURNAL_PHYSICS_PROC = 'SciPostPhysProc' ...@@ -8,7 +8,6 @@ SCIPOST_JOURNAL_PHYSICS_PROC = 'SciPostPhysProc'
SCIPOST_JOURNALS_SUBMIT = ( SCIPOST_JOURNALS_SUBMIT = (
(SCIPOST_JOURNAL_PHYSICS, 'SciPost Physics'), (SCIPOST_JOURNAL_PHYSICS, 'SciPost Physics'),
(SCIPOST_JOURNAL_PHYSICS_LECTURE_NOTES, 'SciPost Physics Lecture Notes'), (SCIPOST_JOURNAL_PHYSICS_LECTURE_NOTES, 'SciPost Physics Lecture Notes'),
(SCIPOST_JOURNAL_PHYSICS_PROC, 'SciPost Proceedings')
) )
# Journal closed for submission # Journal closed for submission
......
...@@ -263,6 +263,10 @@ class RequestSubmissionForm(SubmissionChecks, forms.ModelForm): ...@@ -263,6 +263,10 @@ class RequestSubmissionForm(SubmissionChecks, forms.ModelForm):
qs = self.fields['proceeding'].queryset.open_for_submission() qs = self.fields['proceeding'].queryset.open_for_submission()
self.fields['proceeding'].queryset = qs self.fields['proceeding'].queryset = qs
self.fields['proceeding'].empty_label = None 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 # Update placeholder for the other fields
self.fields['arxiv_link'].widget.attrs.update({ self.fields['arxiv_link'].widget.attrs.update({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment