From c9832e71790c7d93fcf3c512de8327dda3748e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Mon, 25 Jun 2018 02:50:14 +0300 Subject: 0.3-postlang.2 --- 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 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]: -- cgit v1.2.3