def _get_old_connections(facebook_id, current_user_id=None):
 user_or_profile_model = get_model_for_attribute('facebook_id')
 other_facebook_accounts = user_or_profile_model.objects.filter(facebook_id=facebook_id)
 kwargs = {}
 if current_user_id:
  user_model = get_user_model()
  if (user_or_profile_model == user_model):
   kwargs['id'] = current_user_id
  else:
   kwargs['user'] = current_user_id
  other_facebook_accounts = other_facebook_accounts.exclude(**kwargs)
 return other_facebook_accounts

def _get_old_connections ( facebook_id , current_user_id = None ) : user_or_profile_model = get_model_for_attribute ( 'facebook_id' ) other_facebook_accounts = user_or_profile_model . objects . filter ( facebook_id = facebook_id ) kwargs = { } if current_user_id : user_model = get_user_model ( ) if ( user_or_profile_model == user_model ) : kwargs [ 'id' ] = current_user_id else : kwargs [ 'user' ] = current_user_id other_facebook_accounts = other_facebook_accounts . exclude ( ** kwargs ) return other_facebook_accounts
gets other accounts connected to this facebook id .