Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

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

…ch is shorter

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent bb94a48 commit e6460e41348e5113761d5fd831d1179741ce2e9e @adrianholovaty adrianholovaty committed
Showing with 1 addition and 3 deletions.
  1. +1 −3 django/views/
4 django/views/
@@ -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.
Something went wrong with that request. Please try again.