From 21cd0c21a9260176c74c252e3023d20f05ad0ee9 Mon Sep 17 00:00:00 2001 From: Levi Date: Fri, 1 Jul 2016 00:40:39 -0500 Subject: [PATCH] fixed digitalglarus post detail view on DE --- digitalglarus/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/digitalglarus/views.py b/digitalglarus/views.py index 20f81cd9..b4623922 100644 --- a/digitalglarus/views.py +++ b/digitalglarus/views.py @@ -80,9 +80,8 @@ def blog(request): def blog_detail(request, slug): # post = Post.objects.filter_by_language(get_language()).filter(slug=slug).first() - language = 'en-us' # currently nothing is translated to german so we give then en - post = Post.objects.translated(language, slug=slug).first() + post = Post.objects.translated(get_language(), slug=slug).first() context = { 'post': post, }