Merge pull request #70 from sgoudelis/bugfix/blog_publish
Fixed issue with publish flag for the Digital Glarus blog
This commit is contained in:
commit
d890770bcc
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue