Fixed issue with publish flag not be respected when getting blog posts for the site blog. Also for the digitalglarus blog now.

Related issue: https://redmine.ungleich.ch/issues/2284
This commit is contained in:
Efstratios Goudelis 2016-05-16 15:56:05 +03:00
parent 32e488d457
commit adcde9d5c7

View file

@ -70,7 +70,7 @@ def letscowork(request):
def blog(request): def blog(request):
tags = ["digitalglarus"] tags = ["digitalglarus"]
posts = Post.objects.filter_by_language(get_language()).filter(tags__name__in=tags) posts = Post.objects.filter_by_language(get_language()).filter(tags__name__in=tags, publish=True)
context = { context = {
'post_list': posts, 'post_list': posts,
} }