SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 3f34109d authored by George Katsikas's avatar George Katsikas :goat:
Browse files

fix typo in nomination form

parent c679b0d2
No related branches found
No related tags found
No related merge requests found
......@@ -455,7 +455,7 @@ class FellowshipNominationForm(forms.ModelForm):
self.profile
)
if failed_eligibility_criteria:
for critetion in failed_eligibility_criteria:
for criterion in failed_eligibility_criteria:
self.add_error(None, criterion)
if data["college"].acad_field != self.profile.acad_field:
self.add_error(
......@@ -791,6 +791,10 @@ class FellowshipNominationDecisionForm(forms.ModelForm):
self.fields["voting_round"].initial = voting_round
self.fields["outcome"].initial = voting_round.vote_outcome
if nomination := getattr(self.instance, "nomination", None):
if voting_outcome := nomination.latest_voting_round.outcome:
self.fields["outcome"].initial = voting_outcome
#################
# Voting Rounds #
......
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