Merge pull request #103 from levivm/develop

fixed digitalglarus post detail view on DE
This commit is contained in:
Levi Velázquez 2016-07-01 00:42:22 -05:00 committed by GitHub
commit 47b44e2fed

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