From 80a1eef9008d23faa2580bcdacb70e0d5d70d74e Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Sat, 27 Aug 2016 11:13:55 +0200 Subject: [PATCH] Fix lang attribute in django 1.7 --- CHANGELOG.rst | 2 ++ cas_server/templates/cas_server/base.html | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d7135d2..61c12d2 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -17,6 +17,8 @@ Fixed ----- * Fix BootsrapForm: placeholder on Input and Textarea only, use class form-control on Input, Select and Textarea. +* Fix lang attribute in django 1.7. On html pages, the lang attribute of the was not + present in django 1.7. We use now a methode to display it that is also available in django 1.7 v0.7.1 - 2016-08-24 diff --git a/cas_server/templates/cas_server/base.html b/cas_server/templates/cas_server/base.html index 2a2d8e1..a3dd3a7 100644 --- a/cas_server/templates/cas_server/base.html +++ b/cas_server/templates/cas_server/base.html @@ -1,5 +1,5 @@ -{% load i18n %}{% load staticfiles %} - +{% load i18n %}{% load staticfiles %}{% get_current_language as LANGUAGE_CODE %} +