fixed digitalglarus post detail view on DE

This commit is contained in:
Levi 2016-07-01 00:40:39 -05:00
parent e90c5fece0
commit 21cd0c21a9

View file

@ -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,
}