Skip to content

Commit

Permalink
settings: Don't hard code LOGIN_URL
Browse files Browse the repository at this point in the history
Just like in:

  commit 21af569
  Author: Michael Wood <michael.g.wood@intel.com>
  Date:   Thu Nov 12 18:30:36 2015 +0000

      settings: Remove hard coded login url value

But for LOGIN_URL this time.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
  • Loading branch information
Damien Lespiau committed Nov 12, 2015
1 parent 972dc04 commit 5a6a034
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion patchwork/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
# https://docs.djangoproject.com/en/1.6/ref/settings/#auth
#

LOGIN_URL = '/user/login/'
LOGIN_URL = 'auth_login'
LOGIN_REDIRECT_URL = 'user'


Expand Down
2 changes: 1 addition & 1 deletion patchwork/tests/test_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ class UserLoginRedirectTest(TestCase):
def testUserLoginRedirect(self):
url = '/user/'
response = self.client.get(url)
self.assertRedirects(response, settings.LOGIN_URL + '?next=' + url)
self.assertRedirects(response, reverse('auth_login') + '?next=' + url)

class UserProfileTest(TestCase):

Expand Down

0 comments on commit 5a6a034

Please sign in to comment.