def get_list(self, page, sort_column, sort_desc, search, filters, execute=True):
    '\n            Get list of objects from MongoEngine\n\n            :param page:\n                Page number\n            :param sort_column:\n                Sort column\n            :param sort_desc:\n                Sort descending\n            :param search:\n                Search criteria\n            :param filters:\n                List of applied filters\n            :param execute:\n                Run query immediately or not\n        '
    query = self.get_query()
    if self._filters:
        for (flt, flt_name, value) in filters:
            f = self._filters[flt]
            query = f.apply(query, f.clean(value))
    if (self._search_supported and search):
        query = self._search(query, search)
    count = (query.count() if (not self.simple_list_pager) else None)
    if sort_column:
        query = query.order_by(('%s%s' % (('-' if sort_desc else ''), sort_column)))
    else:
        order = self._get_default_order()
        if order:
            query = query.order_by(('%s%s' % (('-' if order[1] else ''), order[0])))
    if (page is not None):
        query = query.skip((page * self.page_size))
    query = query.limit(self.page_size)
    if execute:
        query = query.all()
    return (count, query)
Get list of objects from MongoEngine

:param page:
    Page number
:param sort_column:
    Sort column
:param sort_desc:
    Sort descending
:param search:
    Search criteria
:param filters:
    List of applied filters
:param execute:
    Run query immediately or not
def get_list(self, page, sort_column, sort_desc, search, filters, execute=True):
    '\n            Get list of objects from MongoEngine\n\n            :param page:\n                Page number\n            :param sort_column:\n                Sort column\n            :param sort_desc:\n                Sort descending\n            :param search:\n                Search criteria\n            :param filters:\n                List of applied filters\n            :param execute:\n                Run query immediately or not\n        '
    query = self.get_query()
    if self._filters:
        for (flt, flt_name, value) in filters:
            f = self._filters[flt]
            query = f.apply(query, f.clean(value))
    if (self._search_supported and search):
        query = self._search(query, search)
    count = (query.count() if (not self.simple_list_pager) else None)
    if sort_column:
        query = query.order_by(('%s%s' % (('-' if sort_desc else ), sort_column)))
    else:
        order = self._get_default_order()
        if order:
            query = query.order_by(('%s%s' % (('-' if order[1] else ), order[0])))
    if (page is not None):
        query = query.skip((page * self.page_size))
    query = query.limit(self.page_size)
    if execute:
        query = query.all()
    return (count, query)