@property
def page_link_numbers(self):
    start = ((self.page_number - (self.max_pages // 2)) + 1)
    if (start < 1):
        start = 1
    end = ((start + self.max_pages) - 1)
    if (end > self.total_pages):
        end = self.total_pages
        if (start > 1):
            start = ((end - self.max_pages) + 1)
    return range(start, (end + 1))
@property
def page_link_numbers(self):
    start = ((self.page_number - (self.max_pages // 2)) + 1)
    if (start < 1):
        start = 1
    end = ((start + self.max_pages) - 1)
    if (end > self.total_pages):
        end = self.total_pages
        if (start > 1):
            start = ((end - self.max_pages) + 1)
    return range(start, (end + 1))