--- a/src/ldt/ldt/auth/__init__.py Wed Apr 29 00:54:30 2015 +0200
+++ b/src/ldt/ldt/auth/__init__.py Fri Mar 27 18:07:56 2015 +0100
@@ -1,5 +1,5 @@
from django.conf import settings
-from social_auth.backends import get_backends
+from social.backends.utils import load_backends
def check_access(user, obj):
@@ -13,8 +13,6 @@
"""Start list process"""
l = []
# We list all wanted backends among all availables
- for backend in get_backends():
- for backend_str in settings.AUTHENTICATION_BACKENDS:
- if backend in backend_str:
- l.append(backend)
+ for backend in load_backends(settings.AUTHENTICATION_BACKENDS).keys():
+ l.append(backend)
return l
\ No newline at end of file