1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

[1.11.x] Fixed #28229 -- Fixed the value of LoginView's "next" template variable.

Backport of e7dc39fb65 from master
This commit is contained in:
Mikhail Golubev
2017-05-22 14:52:56 -07:00
committed by Tim Graham
parent f908e9d015
commit 16431b03f8
3 changed files with 13 additions and 5 deletions

View File

@@ -832,6 +832,7 @@ class LoginRedirectAuthenticatedUser(AuthViewsTestCase):
self.login()
response = self.client.get(self.dont_redirect_url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.context['next'], '')
def test_guest(self):
"""If not logged in, stay on the same page."""