SciPost Code Repository

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

fix: :passport_control: filter nominations based on competing interests

parent 1bf25639
No related branches found
No related tags found
No related merge requests found
...@@ -765,7 +765,11 @@ class FellowshipNominationSearchForm(forms.Form): ...@@ -765,7 +765,11 @@ class FellowshipNominationSearchForm(forms.Form):
) )
nominations = ( nominations = (
FellowshipNomination.objects.all() FellowshipNomination.objects.filter(
profile__in=Profile.objects.no_competing_interests_with(
self.user.contributor.profile
)
)
.annotate( .annotate(
latest_round_deadline=latest_round_subquery("voting_deadline"), latest_round_deadline=latest_round_subquery("voting_deadline"),
latest_round_open=latest_round_subquery("voting_opens"), latest_round_open=latest_round_subquery("voting_opens"),
......
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