code: def _check_object_list_is_ordered(self):
          
  
          if hasattr(self.object_list, 'ordered') and not self.object_list.ordered:
              warnings.warn(
                  'Pagination may yield inconsistent results with an unordered '
                  'object_list: {!r}'.format(self.object_list),
                  UnorderedObjectListWarning
              )
docs: Warn if self.object_list is unordered (typically a QuerySet).