diff options
| author | Mikhail Golubev <qsolo825@gmail.com> | 2017-05-22 14:52:56 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-13 09:13:22 -0400 |
| commit | e7dc39fb65e51d7613c941f7e5768b621dea4e76 (patch) | |
| tree | 85c50c6472f449f14e5a048bd5862ce1db3c9721 /tests | |
| parent | a118287bca65f2e5da110c89509941c677ebc2e1 (diff) | |
Fixed #28229 -- Fixed the value of LoginView's "next" template variable.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/auth_tests/test_views.py | 1 |
1 files changed, 1 insertions, 0 deletions
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.""" |
