diff --git a/CHANGES b/CHANGES index 4447d4e..6c64fe7 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,7 @@ ================== * Remove Django 1.8 support * Fix ldap3 compatibility issue: remove white space in DN string +* Use '' for default CAS_DEFAULT_NEXT setting 1.2.1 (2018-08-03) ================== diff --git a/djangowind/views.py b/djangowind/views.py index 3a1ebe9..222a14d 100644 --- a/djangowind/views.py +++ b/djangowind/views.py @@ -124,12 +124,7 @@ def caslogin(request, redirect_field_name=REDIRECT_FIELD_NAME): if not request.is_secure(): protocol = "https" - # if we didn't have one stashed in the session - # the best guess is that it was for django admin - # so, this is a bit magic, but I don't have any better - # ideas right now - default_next = getattr(settings, 'CAS_DEFAULT_NEXT', - "/admin/&this_is_the_login_form=1") + default_next = getattr(settings, 'CAS_DEFAULT_NEXT', '') url = request.session.get( 'cas_service_url', protocol + "://" + request.get_host() + "/accounts/caslogin/"