Django

Code

Changeset 8613

Show
Ignore:
Timestamp:
08/27/08 01:02:13 (3 months ago)
Author:
mtredinnick
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/auth/tests/views.py

    r8497 r8613  
    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'):