From 6b70b8dfbf3e56f844556874dd0b84f0cf9ed82d Mon Sep 17 00:00:00 2001 From: Emilie Date: Fri, 30 Sep 2016 15:15:38 +0200 Subject: [PATCH] Candidacy : display only published elements --- app/organization/job/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/organization/job/views.py b/app/organization/job/views.py index 1dd4d0f4..d035995f 100644 --- a/app/organization/job/views.py +++ b/app/organization/job/views.py @@ -102,6 +102,9 @@ class CandidacyListView(ListView): template_name='job/candidacy_list.html' context_object_name = 'candidacy' + def get_queryset(self, **kwargs): + return self.model.objects.published() + def get_context_data(self, **kwargs): context = super(CandidacyListView, self).get_context_data(**kwargs) return context -- 2.39.5