From 8fc0ad20a6b36c507d53913a7896bf164c347b17 Mon Sep 17 00:00:00 2001 From: Efstratios Goudelis Date: Mon, 16 May 2016 15:56:05 +0300 Subject: [PATCH] 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 --- digitalglarus/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/digitalglarus/views.py b/digitalglarus/views.py index 3dcadbfc..ff67e0d6 100644 --- a/digitalglarus/views.py +++ b/digitalglarus/views.py @@ -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, }