fixed digitalglarus post detail view on DE
This commit is contained in:
parent
e90c5fece0
commit
21cd0c21a9
1 changed files with 1 additions and 2 deletions
|
@ -80,9 +80,8 @@ def blog(request):
|
||||||
|
|
||||||
def blog_detail(request, slug):
|
def blog_detail(request, slug):
|
||||||
# post = Post.objects.filter_by_language(get_language()).filter(slug=slug).first()
|
# 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 = {
|
context = {
|
||||||
'post': post,
|
'post': post,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue