code: def paginator(self):
          
          if not hasattr(self, '_paginator'):
              if self.pagination_class is None:
                  self._paginator = None
              else:
                  self._paginator = self.pagination_class()
          return self._paginator
docs: The paginator instance associated with the view, or `None`.