@profiler.trace
def rule_list_for_tenant(request, tenant_id, **kwargs):
 rules = rule_list(request, tenant_id=tenant_id, shared=False, **kwargs)
 shared_rules = rule_list(request, shared=True, **kwargs)
 return (rules + shared_rules)

@ profiler . trace def rule_list_for_tenant ( request , tenant_id , ** kwargs ) : rules = rule_list ( request , tenant_id = tenant_id , shared = False , ** kwargs ) shared_rules = rule_list ( request , shared = True , ** kwargs ) return ( rules + shared_rules )
return a rule list available for the tenant .