Skip to content

Commit 5d46cf4

Browse files
authored
Merge pull request #79 from johngian/fix-logout-call
Fix logout url call after import.
2 parents 424de8b + 8831c71 commit 5d46cf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mozilla_django_oidc/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def dispatch(self, request, *args, **kwargs):
121121
# Check if a method exists to build the url to logout the user from the OP
122122
logout_from_op = import_from_settings('OIDC_OP_LOGOUT_URL_METHOD', '')
123123
if logout_from_op:
124-
logout_url = import_string(logout_from_op)
124+
logout_url = import_string(logout_from_op)()
125125

126126
# Log out the Django user.
127127
auth.logout(request)

0 commit comments

Comments
 (0)