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
39c7f4858d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue