From 32e488d457d8f5c1f5e73537f8d2857292f9c819 Mon Sep 17 00:00:00 2001 From: Efstratios Goudelis Date: Mon, 16 May 2016 15:34:45 +0300 Subject: [PATCH] Fixed issue with publish flag not be respected when getting blog posts for the site blog. Related issue: https://redmine.ungleich.ch/issues/2284 --- ungleich/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ungleich/views.py b/ungleich/views.py index 9c06d4fa..68179c3b 100644 --- a/ungleich/views.py +++ b/ungleich/views.py @@ -33,7 +33,7 @@ class PostListViewUngleich(PostListView): def get_queryset(self): language = get_language() - queryset = self.model.objects.translated(language) + queryset = self.model.objects.filter(publish=True).translated(language) setattr(self.request, get_setting('CURRENT_NAMESPACE'), self.config) return queryset