This commit is contained in:
Jan Tuomi
2017-10-17 12:45:41 +03:00
parent a7732e136d
commit f498c0a787
+2 -2
View File
@@ -1,10 +1,10 @@
class ForceDefaultLanguageMiddleware(object):
"""
Ignore Accept-Language HTTP headers
This will force the I18N machinery to always choose settings.LANGUAGE_CODE
as the default initial language, unless another one is set via sessions or cookies
Should be installed *before* any middleware that checks request.META['HTTP_ACCEPT_LANGUAGE'],
namely django.middleware.locale.LocaleMiddleware
"""