@profiler.trace
def policy_list_for_tenant(request, tenant_id, **kwargs):
 policies = policy_list(request, tenant_id=tenant_id, shared=False, **kwargs)
 shared_policies = policy_list(request, shared=True, **kwargs)
 return (policies + shared_policies)

@ profiler . trace def policy_list_for_tenant ( request , tenant_id , ** kwargs ) : policies = policy_list ( request , tenant_id = tenant_id , shared = False , ** kwargs ) shared_policies = policy_list ( request , shared = True , ** kwargs ) return ( policies + shared_policies )
return a policy list available for the tenant .