home added and assigned right template

This commit is contained in:
Tomislav R 2016-04-09 08:51:20 +02:00
commit 36b99b93ef
12 changed files with 156 additions and 42 deletions

View file

@ -42,6 +42,11 @@ class PostListViewUngleich(PostListView):
def details(request, year, month, day, slug):
post = Post.objects.translated(get_language(), slug=slug).first()
#should be this way
language = get_language()
#but currently the posts are not trasnlated
# language = 'en-us'
post = Post.objects.translated(language, slug=slug).first()
context = {'post': post}
return render(request, 'ungleich/djangocms_blog/post_detail.html', context=context)