From acfafeabb15ffc38d807aa1ca4da77ca9893cc4f Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Wed, 30 Sep 2020 19:31:35 +0200 Subject: [PATCH] Debug EICRec form --- submissions/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/submissions/forms.py b/submissions/forms.py index 9e5b209da..e1c65e878 100644 --- a/submissions/forms.py +++ b/submissions/forms.py @@ -1285,12 +1285,12 @@ class EICRecommendationForm(forms.ModelForm): for_journal_qs = Journal.objects.active().filter( # The journals which can be recommended for are those falling under # the responsibility of the College of the journal submitted to - college=self.submission.to_journal.college) - if self.submission.to_journal.name.partition(' ')[0] == 'SciPost': + college=self.submission.submitted_to.college) + if self.submission.submitted_to.name.partition(' ')[0] == 'SciPost': # Submitted to a SciPost journal, so Selections is accessible for_journal_qs = for_journal_qs | Journal.objects.filter(name='SciPost Selections') self.fields['for_journal'] = for_journal_qs - if self.submission.to_journal.name.partition(' ')[0] == 'SciPost': + if self.submission.submitted_to.name.partition(' ')[0] == 'SciPost': # Submitted to a SciPost journal, so Core and Selections are accessible self.fields['for_journal'].help_text=( 'Please be aware of all the points below!' -- GitLab