  import sys
  import warnings
  from collections import OrderedDict, deque
  from contextlib import suppress
  
  from django.conf import settings
  from django.core import exceptions
  from django.db import (
 
</s> remove         return iter(self._iterable_class(self, chunked_fetch=use_chunked_fetch, chunk_size=chunk_size))
 </s> add         return self._iterator(use_chunked_fetch, chunk_size) </s> remove         for row in compiler.results_iter():
            yield row[0]
 </s> add         return chain.from_iterable(compiler.results_iter())
from itertools import chain
  import sys
  import warnings
  from collections import OrderedDict, deque
  from contextlib import suppress
from itertools import chain
  
  from django.conf import settings
  from django.core import exceptions
  from django.db import (
keep keep keep add keep keep keep keep
 Refs #28459 -- Improved performance of FlatValuesListIterable. 
django/db/models/query.py