mirror of
https://github.com/django/django.git
synced 2025-09-28 13:04:54 +00:00
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
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue