code: def end_index(self):
          
          return ((self.number - 1) * self.paginator.per_page +
              len(self.object_list))
docs: Returns the 1-based index of the last object on this page,
          relative to total objects found (hits).