SciPost Code Repository

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

Debug stupidity

parent c8bae18e
No related branches found
No related tags found
No related merge requests found
...@@ -640,6 +640,6 @@ class SubmissionCycleChoiceForm(forms.ModelForm): ...@@ -640,6 +640,6 @@ class SubmissionCycleChoiceForm(forms.ModelForm):
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
self.fields['refereeing_cycle'].default = None self.fields['refereeing_cycle'].default = None
other_submission = self.instance.other_versions[0] other_submission = self.instance.other_versions.first()
if other_submission: if other_submission:
self.fields['referees_reinvite'].queryset = other_submission.referee_invitations.all() self.fields['referees_reinvite'].queryset = other_submission.referee_invitations.all()
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