def get_disconnect_url(provider_id, association_id):
 backend_name = _get_enabled_provider(provider_id).backend_name
 if association_id:
  return _get_url('social:disconnect_individual', backend_name, url_params={'association_id': association_id})
 else:
  return _get_url('social:disconnect', backend_name)

def get_disconnect_url ( provider_id , association_id ) : backend_name = _get_enabled_provider ( provider_id ) . backend_name if association_id : return _get_url ( 'social:disconnect_individual' , backend_name , url_params = { 'association_id' : association_id } ) else : return _get_url ( 'social:disconnect' , backend_name )
gets url for the endpoint that starts the disconnect pipeline .