'Returns the 1-based index of the last object on this page,
relative to total objects found (hits).'

def end_index(self):

    if (self.number == self.paginator.num_pages):
        return self.paginator.count
    return (self.number * self.paginator.per_page)
