Code

Ticket #8552: auth_test_views.patch

File auth_test_views.patch, 576 bytes (added by aeby, 6 years ago)
  • django/contrib/auth/tests/views.py

     
    113113            } 
    114114        ) 
    115115        self.assertEquals(response.status_code, 302) 
    116         self.assert_(response['Location'].endswith('/accounts/profile/')) 
     116        self.assert_(response['Location'].endswith(settings.LOGIN_REDIRECT_URL)) 
    117117 
    118118    def fail_login(self, password='password'): 
    119119        response = self.client.post('/login/', {