From: Alex Kamedov Date: Sun, 24 Apr 2011 11:14:59 +0000 (+0600) Subject: simplify logic for login success redirect URL X-Git-Tag: 22.4~32^2~20^2~4 X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/commitdiff_plain/d5147f3e71e53b2689f35c095c7df1abf78d673d?ds=inline simplify logic for login success redirect URL --- 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: