Ticket #8121: 8121-r8137.diff
File 8121-r8137.diff, 575 bytes (added by , 16 years ago) |
---|
-
django/middleware/locale.py
19 19 20 20 def process_response(self, request, response): 21 21 patch_vary_headers(response, ('Accept-Language',)) 22 response['Content-Language'] = translation.get_language() 22 if 'Content-Language' not in response: 23 response['Content-Language'] = translation.get_language() 23 24 translation.deactivate() 24 25 return response