From def445b3e3da2bf78837469df0bc7a300ba55d84 Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Mon, 24 Jul 2017 21:55:35 +0200 Subject: [PATCH] Debug stupidity --- submissions/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submissions/forms.py b/submissions/forms.py index 950d8ad1b..e6b3cd433 100644 --- a/submissions/forms.py +++ b/submissions/forms.py @@ -640,6 +640,6 @@ 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[0] + other_submission = self.instance.other_versions.first() if other_submission: self.fields['referees_reinvite'].queryset = other_submission.referee_invitations.all() -- GitLab