From a317f4fa53161150677805821b83eb75870ad883 Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Wed, 4 Oct 2017 12:30:13 +0200 Subject: [PATCH] Change to new other_versions method --- submissions/forms.py | 2 +- submissions/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/submissions/forms.py b/submissions/forms.py index 1fd5527db..ef88d0341 100644 --- a/submissions/forms.py +++ b/submissions/forms.py @@ -665,7 +665,7 @@ class SubmissionCycleChoiceForm(forms.ModelForm): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.fields['refereeing_cycle'].default = None - other_submission = self.instance.other_versions.first() + other_submission = self.instance.other_versions_pool.first() if other_submission: self.fields['referees_reinvite'].queryset = other_submission.referee_invitations.all() diff --git a/submissions/views.py b/submissions/views.py index 7007d5d23..dacf02601 100644 --- a/submissions/views.py +++ b/submissions/views.py @@ -1501,7 +1501,7 @@ def fix_College_decision(request, rec_id): elif recommendation.recommendation == -3: # Reject + update-reject other versions of submission submission.status = 'rejected' - for sub in submission.other_versions: + for sub in submission.other_versions_pool: sub.status = 'resubmitted_rejected' sub.save() -- GitLab