Changeset 816
- Timestamp:
- 10/09/05 05:57:05 (3 years ago)
- Files:
-
- django/branches/i18n/django/middleware/locale.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/i18n/django/middleware/locale.py
r744 r816 1 1 "this is the locale selecting middleware that will look at accept headers" 2 2 3 from django.utils.cache import patch_vary_headers 3 4 from django.utils import translation 4 5 … … 39 40 translation.activate(app, lang) 40 41 42 def process_response(self, request, response): 43 patch_vary_headers(response, ('Accept-Language',)) 44 return response 45
