def __init__(self, query):
    self.page_number = 1
    self.query = query
    self.total_items = query.count()
    self.page_size = self.total_items
    self.total_pages = 1
    self.offset = 0
    self.items = query.all()
def __init__(self, query):
    self.page_number = 1
    self.query = query
    self.total_items = query.count()
    self.page_size = self.total_items
    self.total_pages = 1
    self.offset = 0
    self.items = query.all()