mirror of https://github.com/django/django.git
Changed set_language() change from [6320] to use request.REQUEST, which is shorter
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
bb94a48f88
commit
e6460e4134
|
@ -16,9 +16,7 @@ def set_language(request):
|
|||
redirect to the page in the request (the 'next' parameter) without changing
|
||||
any state.
|
||||
"""
|
||||
next = request.POST.get('next', None)
|
||||
if not next:
|
||||
next = request.GET.get('next', None)
|
||||
next = request.REQUEST.get('next', None)
|
||||
if not next:
|
||||
next = request.META.get('HTTP_REFERER', None)
|
||||
if not next:
|
||||
|
|
Loading…
Reference in New Issue