Merge pull request #8402 from edx/sarina/annotate-middleware

Fix dark lang and django.middleware.locale behaviors LOC-72 LOC-85
This commit is contained in:
Sarina Canelake
2015-06-15 11:29:15 -04:00
10 changed files with 547 additions and 27 deletions

View File

@@ -305,7 +305,9 @@ MIDDLEWARE_CLASSES = (
'embargo.middleware.EmbargoMiddleware',
# Detects user-requested locale from 'accept-language' header in http request
'django.middleware.locale.LocaleMiddleware',
# TODO: Re-import the Django version once we upgrade to Django 1.8 [PLAT-671]
# 'django.middleware.locale.LocaleMiddleware',
'django_locale.middleware.LocaleMiddleware',
'django.middleware.transaction.TransactionMiddleware',
# needs to run after locale middleware (or anything that modifies the request context)