def handler(self, ctx): ctx = context.make_admin_context() context.set_ctx(ctx) func(self, ctx) context.set_ctx(None)
def handler(self, ctx): ctx = context.make_admin_context(all_tenants=True) context.set_ctx(ctx) func(self, ctx) context.set_ctx(None)