Skip to content

Commit

Permalink
Fixed #8552 -- Use the LOGIN_REDIRECT_URL setting in the auth tests, …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
malcolmt committed Aug 27, 2008
1 parent 9de848c commit 157dbe2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/auth/tests/views.py
Expand Up @@ -113,7 +113,7 @@ def login(self, password='password'):
} }
) )
self.assertEquals(response.status_code, 302) 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'): def fail_login(self, password='password'):
response = self.client.post('/login/', { response = self.client.post('/login/', {
Expand Down

0 comments on commit 157dbe2

Please sign in to comment.