diff options
author | Yaroslav de la Peña Smirnov <contact@yaroslavps.com> | 2018-06-25 02:50:14 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <contact@yaroslavps.com> | 2018-06-25 02:50:14 +0300 |
commit | c9832e71790c7d93fcf3c512de8327dda3748e70 (patch) | |
tree | 0caa26ecdc8f8566f9b6a189ae7717bd4d67fb97 /weblog/views.py | |
parent | 8fd79ffe610d4fce69913fd167d437322347c3d4 (diff) | |
download | w3blog-c9832e71790c7d93fcf3c512de8327dda3748e70.tar.gz w3blog-c9832e71790c7d93fcf3c512de8327dda3748e70.zip |
0.3-postlang.2
Diffstat (limited to 'weblog/views.py')
-rwxr-xr-x | weblog/views.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weblog/views.py b/weblog/views.py index f28f201..d2bdb2d 100755 --- a/weblog/views.py +++ b/weblog/views.py @@ -218,6 +218,7 @@ def PostView(request, category_slug, post_slug, language=None): if len(orig_lang) < 2: orig_lang = settings.LANGUAGE_CODE[0:2] context_dict['languages'] = [orig_lang,] + context_dict['all_languages'] = settings.LANGUAGES for post_translation in post_translations: context_dict['languages'].append(post_translation.language) if language and language == post_translation.language[0:2]: |