Merge pull request #70 from sgoudelis/bugfix/blog_publish

Fixed issue with publish flag for the Digital Glarus blog
This commit is contained in:
Nico Schottelius 2016-05-16 21:58:04 +09:00
commit d890770bcc

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,
} }