(self)
return self._page.paginator.num_pages
The length of the sequence is the total number of pages.
The length of the sequence is the total number of pages.
The length of the sequence is the total number of pages .
def __len__(self):
        """The length of the sequence is the total number of pages."""
        return self._page.paginator.num_pages
def __len__ ( self ) : return self . _page . paginator . num_pages