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:
Adrian Holovaty 2007-09-15 20:00:14 +00:00
parent bb94a48f88
commit e6460e4134
1 changed files with 1 additions and 3 deletions

View File

@ -16,9 +16,7 @@ def set_language(request):
redirect to the page in the request (the 'next' parameter) without changing redirect to the page in the request (the 'next' parameter) without changing
any state. any state.
""" """
next = request.POST.get('next', None) next = request.REQUEST.get('next', None)
if not next:
next = request.GET.get('next', None)
if not next: if not next:
next = request.META.get('HTTP_REFERER', None) next = request.META.get('HTTP_REFERER', None)
if not next: if not next: