      last_page_strings = ('last',)
  
      template = 'rest_framework/pagination/numbers.html'
  
      def _handle_backwards_compat(self, view):
          """
          Prior to version 3.1, pagination was handled in the view, and the
          attributes were set there. The attributes should now be set on
          the pagination class, but the old style is still pending deprecation.
 
</s> remove             self.page = reversed(self.page)
 </s> add             self.page = list(reversed(self.page)) </s> remove         compare = self.next_position
 </s> add         if self.cursor and self.cursor.reverse and self.cursor.offset != 0:
            # If we're reversing direction and we have an offset cursor
            # then we cannot use the first position we find as a marker.
            compare = self._get_position_from_instance(self.page[-1], self.ordering)
        else:
            compare = self.next_position </s> remove         compare = self.previous_position
 </s> add         if self.cursor and not self.cursor.reverse and self.cursor.offset != 0:
            # If we're reversing direction and we have an offset cursor
            # then we cannot use the first position we find as a marker.
            compare = self._get_position_from_instance(self.page[0], self.ordering)
        else:
            compare = self.previous_position </s> remove             # TODO: Invalid cursors should 404
 </s> add 
    invalid_page_message = _('Invalid page "{page_number}": {message}.')

      last_page_strings = ('last',)
  
      template = 'rest_framework/pagination/numbers.html'
  
    invalid_page_message = _('Invalid page "{page_number}": {message}.')

      def _handle_backwards_compat(self, view):
          """
          Prior to version 3.1, pagination was handled in the view, and the
          attributes were set there. The attributes should now be set on
          the pagination class, but the old style is still pending deprecation.
keep keep keep add keep keep keep keep keep
 Tidy up cursor tests and make more comprehensive 
rest_framework/pagination.py