SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit e0489730 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Fix bug is display of potfels to vote on (gitea issue #6)

parent 0aced49b
No related branches found
No related tags found
No related merge requests found
...@@ -56,7 +56,7 @@ class PotentialFellowshipQuerySet(models.QuerySet): ...@@ -56,7 +56,7 @@ class PotentialFellowshipQuerySet(models.QuerySet):
return self.filter( return self.filter(
profile__discipline=contributor.profile.discipline, profile__discipline=contributor.profile.discipline,
status=POTENTIAL_FELLOWSHIP_ELECTION_VOTE_ONGOING status=POTENTIAL_FELLOWSHIP_ELECTION_VOTE_ONGOING
).order_by('profile__last_name') ).distinct().order_by('profile__last_name')
def to_vote_on(self, contributor): def to_vote_on(self, contributor):
return self.vote_needed(contributor).exclude( return self.vote_needed(contributor).exclude(
......
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