simplify logic for login success redirect URL
authorAlex Kamedov <alex@kamedov.ru>
Sun, 24 Apr 2011 11:14:59 +0000 (17:14 +0600)
committerAlex Kamedov <alex@kamedov.ru>
Sun, 24 Apr 2011 11:14:59 +0000 (17:14 +0600)
cas_provider/views.py

index 41d02fd..452c071 100644 (file)
@@ -12,7 +12,7 @@ __all__ = ['login', 'validate', 'logout', 'service_validate']
 
 
 def login(request, template_name='cas/login.html', \
 
 
 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:
     service = request.GET.get('service', None)
     if request.user.is_authenticated():
         if service is not None: