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 39c7f4858d

View file

@ -70,7 +70,7 @@ def letscowork(request):
def blog(request):
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 = {
'post_list': posts,
}