Commits

mtre...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed b9cd36b

Fixed #8552 -- Use the LOGIN_REDIRECT_URL setting in the auth tests, rather than hard-coding the value.

This enables things to work properly when installed in other configurations.
Patch from aeby.

  • Participants
  • Parent commits 50c3170

Comments (0)

Files changed (1)

File django/contrib/auth/tests/views.py

             }
         )
         self.assertEquals(response.status_code, 302)
-        self.assert_(response['Location'].endswith('/accounts/profile/'))
+        self.assert_(response['Location'].endswith(settings.LOGIN_REDIRECT_URL))
 
     def fail_login(self, password='password'):
         response = self.client.post('/login/', {