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: