From 9046c24c4f99ec1b23f717f81ab0f42650289446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sun, 15 Jul 2018 03:17:54 +0300 Subject: Language selector function --- weblog/views.py | 1 + 1 file changed, 1 insertion(+) (limited to 'weblog/views.py') diff --git a/weblog/views.py b/weblog/views.py index 922e8c5..95558fc 100755 --- a/weblog/views.py +++ b/weblog/views.py @@ -159,6 +159,7 @@ def PostView(request, category_slug, post_slug, language=None): post = get_object_or_404(BlogPost, slug=post_slug) context_dict = blog_settings.copy() context_dict['comment_form'] = PostCommentForm() + context_dict['post_url'] = post.get_absolute_url() post_translations = Translation.objects.filter(post=post) category = None current_language = translation.get_language() -- cgit v1.2.3