Browse files

Changed set_language() change from [6320] to use request.REQUEST, whi…

…ch is shorter

git-svn-id: http://code.djangoproject.com/svn/django/trunk@6324 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent bb94a48 commit e6460e41348e5113761d5fd831d1179741ce2e9e @adrianholovaty adrianholovaty committed Sep 15, 2007
Showing with 1 addition and 3 deletions.
  1. +1 −3 django/views/i18n.py
View
4 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:

0 comments on commit e6460e4

Please sign in to comment.