Fixed issue with publish flag not be respected when getting blog posts for the site blog. Also for the digitalglarus blog now.
Related issue: https://redmine.ungleich.ch/issues/2284
This commit is contained in:
parent
9c83f29b94
commit
8fc0ad20a6
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