1
0
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:
Mikhail Golubev
2017-05-22 14:52:56 -07:00
committed by Tim Graham
parent a118287bca
commit e7dc39fb65
3 changed files with 13 additions and 5 deletions

View File

@@ -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."""