diff options
Diffstat (limited to 'django/middleware/locale.py')
-rw-r--r-- | django/middleware/locale.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/django/middleware/locale.py b/django/middleware/locale.py index 996b2d4c5b..9719150d59 100644 --- a/django/middleware/locale.py +++ b/django/middleware/locale.py @@ -1,11 +1,12 @@ "This is the locale selecting middleware that will look at accept headers" from django.conf import settings -from django.core.urlresolvers import (is_valid_path, get_resolver, get_script_prefix, - LocaleRegexURLResolver) +from django.core.urlresolvers import ( + LocaleRegexURLResolver, get_resolver, get_script_prefix, is_valid_path, +) from django.http import HttpResponseRedirect -from django.utils.cache import patch_vary_headers from django.utils import translation +from django.utils.cache import patch_vary_headers class LocaleMiddleware(object): |