def get_list(self, term, offset=0, limit=DEFAULT_PAGE_SIZE):
        query = self.session.query(self.model)

        filters = (field.ilike(u'%%%s%%' % term) for field in self._cached_fields)
        query = query.filter(or_(*filters))

        if self.order_by:
            query = query.order_by(self.order_by)

        return query.offset(offset).limit(limit).all()
dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/contrib/sqla/ajax.py/QueryAjaxModelLoader.get_list/original