From d5147f3e71e53b2689f35c095c7df1abf78d673d Mon Sep 17 00:00:00 2001 From: Alex Kamedov Date: Sun, 24 Apr 2011 17:14:59 +0600 Subject: [PATCH] simplify logic for login success redirect URL --- cas_provider/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cas_provider/views.py b/cas_provider/views.py index 41d02fd..452c071 100644 --- a/cas_provider/views.py +++ b/cas_provider/views.py @@ -12,7 +12,7 @@ __all__ = ['login', 'validate', 'logout', 'service_validate'] def login(request, template_name='cas/login.html', \ - success_redirect=getattr(settings, 'LOGIN_REDIRECT_URL', '/accounts/')): + success_redirect=settings.LOGIN_REDIRECT_URL): service = request.GET.get('service', None) if request.user.is_authenticated(): if service is not None: -- 2.20.1