summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-09-15 20:00:14 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-09-15 20:00:14 +0000
commite6460e41348e5113761d5fd831d1179741ce2e9e (patch)
tree52fb5f5212c0f116920fae6fdd23f741fe5109f2
parentbb94a48f884e1f18c376c3fd518582a8b7ba0dba (diff)
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
-rw-r--r--django/views/i18n.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/views/i18n.py b/django/views/i18n.py
index e2459cf957..cccec13941 100644
--- a/django/views/i18n.py
+++ b/django/views/i18n.py
@@ -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: