Skip to content

Commit

Permalink
Change pending candidates view
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Dec 4, 2024
1 parent 0b8fc8b commit fd6c242
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/hub/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ def get_candidates_to_vote(cls):
)

@classmethod
def get_candidates_pending(cls):
def get_candidates_proposed(cls):
return (
Candidate.objects_with_org.filter(
org__status=Organization.STATUS.accepted,
Expand All @@ -609,7 +609,7 @@ def get_qs(self):
if FeatureFlag.flag_enabled(PHASE_CHOICES.enable_results_display):
return Candidate.objects_with_org.none()

return self.get_candidates_pending()
return self.get_candidates_proposed()

def get_queryset(self):
qs = self.search(self.get_qs())
Expand Down Expand Up @@ -659,7 +659,7 @@ class CandidatesAllListView(CandidateListView):
template_name = "hub/candidate/all.html"

def get_queryset(self):
qs = self.search(self.get_candidates_pending())
qs = self.search(self.get_candidates_proposed())

filters = {name: self.request.GET[name] for name in self.allow_filters if self.request.GET.get(name)}

Expand Down

0 comments on commit fd6c242

Please sign in to comment.