summaryrefslogtreecommitdiff
path: root/tests/auth_tests
diff options
context:
space:
mode:
authorMikhail Golubev <qsolo825@gmail.com>2017-05-22 14:52:56 -0700
committerTim Graham <timograham@gmail.com>2017-06-13 09:19:11 -0400
commit16431b03f801788d791bbb24d6fb266c3591ab07 (patch)
treef3081accccc085dfd5743900a344b33838167790 /tests/auth_tests
parentf908e9d015b5ac56b834f362339b03f6647e35ee (diff)
[1.11.x] Fixed #28229 -- Fixed the value of LoginView's "next" template variable.
Backport of e7dc39fb65e51d7613c941f7e5768b621dea4e76 from master
Diffstat (limited to 'tests/auth_tests')
-rw-r--r--tests/auth_tests/test_views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py
index a66d1e5809..25b779f709 100644
--- a/tests/auth_tests/test_views.py
+++ b/tests/auth_tests/test_views.py
@@ -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."""