mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #28229 -- Fixed the value of LoginView's "next" template variable.
This commit is contained in:
committed by
Tim Graham
parent
a118287bca
commit
e7dc39fb65
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user