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:
committed by
Tim Graham
parent
f908e9d015
commit
16431b03f8
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user