def backends(request): """Load Social Auth current user data to context under the key 'backends'. Will return the output of social_core.backends.utils.user_backends_data.""" return { 'backends': LazyDict(lambda: user_backends_data(request.user, BACKENDS, Storage)) }
def backends(): """Load Social Auth current user data to context under the key 'backends'. Will return the output of social.backends.utils.user_backends_data.""" return { 'backends': user_backends_data(current_user, get_helper('AUTHENTICATION_BACKENDS'), get_helper('STORAGE', do_import=True)) }
def backends(request, user): """Load Social Auth current user data to context under the key 'backends'. Will return the output of social_core.backends.utils.user_backends_data.""" storage = module_member(get_helper('STORAGE')) return { 'backends': user_backends_data(user, get_helper('AUTHENTICATION_BACKENDS'), storage) }
def backends(request): """Load Social Auth current user data to context under the key 'backends'. Will return the output of social_core.backends.utils.user_backends_data.""" return {'backends': LazyDict(lambda: user_backends_data(request.user, BACKENDS, Storage))}