From fd6c242ec557cad5641477d2c167b86bdeca29d1 Mon Sep 17 00:00:00 2001 From: Tudor Amariei Date: Wed, 4 Dec 2024 18:09:06 +0200 Subject: [PATCH] Change pending candidates view --- backend/hub/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/hub/views.py b/backend/hub/views.py index 9b88c39..803a24f 100644 --- a/backend/hub/views.py +++ b/backend/hub/views.py @@ -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, @@ -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()) @@ -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)}