From 8831c715a6a1fae2efb8d27f37f635d60b8bfaff Mon Sep 17 00:00:00 2001 From: John Giannelos Date: Thu, 12 Jan 2017 17:34:35 +0100 Subject: [PATCH] Fix logout url call after import. --- mozilla_django_oidc/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla_django_oidc/views.py b/mozilla_django_oidc/views.py index bd76ca4a..0f544b8f 100644 --- a/mozilla_django_oidc/views.py +++ b/mozilla_django_oidc/views.py @@ -121,7 +121,7 @@ def dispatch(self, request, *args, **kwargs): # Check if a method exists to build the url to logout the user from the OP logout_from_op = import_from_settings('OIDC_OP_LOGOUT_URL_METHOD', '') if logout_from_op: - logout_url = import_string(logout_from_op) + logout_url = import_string(logout_from_op)() # Log out the Django user. auth.logout(request)