SciPost Code Repository

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

make EIC vote in favor of their own recommendation

parent b2d53b70
No related branches found
No related tags found
1 merge request!54Make EIC vote in favor of their own recommendation
...@@ -2701,6 +2701,14 @@ class EICRecommendationForm(forms.ModelForm): ...@@ -2701,6 +2701,14 @@ class EICRecommendationForm(forms.ModelForm):
recommendation.save() recommendation.save()
# The EIC should vote in favour of their own recommendation
# This should be done after the recommendation is saved, so that the
# id is determined for use in the ManyToMany relation.
# Tiering has already been created above, and no special objects are required
# in the event of submission rejection.
recommendation.voted_for.add(self.submission.editor_in_charge)
recommendation.save()
return recommendation return recommendation
def revision_requested(self): def revision_requested(self):
......
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