(self)
return (self.number - 1) * paginator.per_page + paginator.first_page
Return the 1-based index of the last item on this page.
Return the 1-based index of the last item on this page.
Return the 1 - based index of the last item on this page .
def end_index(self):
        """Return the 1-based index of the last item on this page."""
        paginator = self.paginator
        # Special case for the last page because there can be orphans.
        if self.number == paginator.num_pages:
            return paginator.count
        return (self.number - 1) * paginator.per_page + paginator.first_page
def end_index ( self ) : paginator = self . paginator # Special case for the last page because there can be orphans. if self . number == paginator . num_pages : return paginator . count return ( self . number - 1 ) * paginator . per_page + paginator . first_page