code: def pages(self):
          
          cur = self
          pages = []
          while cur.previous:
              cur = cur.previous
          while cur:
              pages.append(cur)
              cur = cur.next
          return pages
docs: Gets a list of all pages for this view