Fixed #5603 -- Allow customization of the language cookie name. Thanks, moe.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7185 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2008-02-29 18:38:44 +00:00
parent 2dbb08e5dc
commit efed04b634
5 changed files with 18 additions and 7 deletions

View file

@ -28,7 +28,7 @@ def set_language(request):
if hasattr(request, 'session'):
request.session['django_language'] = lang_code
else:
response.set_cookie('django_language', lang_code)
response.set_cookie(settings.LANGUAGE_COOKIE_NAME, lang_code)
return response
NullSource = """