diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-08-27 06:02:13 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-08-27 06:02:13 +0000 |
| commit | 157dbe2fffc4a385bbc635d3ba8adad9be947a17 (patch) | |
| tree | 48e9b8dfd6102af430c1f65beab7a8263cbddbaa | |
| parent | 9de848cec9eea167f0d29097897b66abc03ea918 (diff) | |
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.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8613 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/contrib/auth/tests/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/auth/tests/views.py b/django/contrib/auth/tests/views.py index acd0336c4d..cf17b827e7 100644 --- a/django/contrib/auth/tests/views.py +++ b/django/contrib/auth/tests/views.py @@ -113,7 +113,7 @@ class ChangePasswordTest(TestCase): } ) 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/', { |
