aboutsummaryrefslogtreecommitdiff
path: root/weblog/views.py
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <contact@yaroslavps.com>2018-07-15 03:17:54 +0300
committerYaroslav de la Peña Smirnov <contact@yaroslavps.com>2018-07-15 03:17:54 +0300
commit9046c24c4f99ec1b23f717f81ab0f42650289446 (patch)
treeddcee86a5d0625733f1caf6996588f26fdc9beb9 /weblog/views.py
parentc9d2bbeea44a9e691ba214d0be8566fe0d59fd77 (diff)
downloadw3blog-9046c24c4f99ec1b23f717f81ab0f42650289446.tar.gz
w3blog-9046c24c4f99ec1b23f717f81ab0f42650289446.zip
Language selector function
Diffstat (limited to 'weblog/views.py')
-rwxr-xr-xweblog/views.py1
1 files changed, 1 insertions, 0 deletions
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()