Fixed issue with publish flag not be respected when getting blog posts for the site blog.
Related issue: https://redmine.ungleich.ch/issues/2284
This commit is contained in:
parent
7c88ebe9f5
commit
9c83f29b94
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ class PostListViewUngleich(PostListView):
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
language = get_language()
|
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)
|
setattr(self.request, get_setting('CURRENT_NAMESPACE'), self.config)
|
||||||
return queryset
|
return queryset
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue