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
1 changed files with 1 additions and 1 deletions

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