From e7dc39fb65e51d7613c941f7e5768b621dea4e76 Mon Sep 17 00:00:00 2001 From: Mikhail Golubev Date: Mon, 22 May 2017 14:52:56 -0700 Subject: Fixed #28229 -- Fixed the value of LoginView's "next" template variable. --- tests/auth_tests/test_views.py | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py index 7dbf74928d..354eea7899 100644 --- a/tests/auth_tests/test_views.py +++ b/tests/auth_tests/test_views.py @@ -835,6 +835,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.""" -- cgit v1.3