MCPcopy
hub / github.com/django/django / __iter__

Method __iter__

django/db/models/query.py:294–300  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

292 """
293
294 def __iter__(self):
295 queryset = self.queryset
296 compiler = queryset.query.get_compiler(queryset.db)
297 for row in compiler.results_iter(
298 chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size
299 ):
300 yield row[0]
301
302
303class PreventQuerySetCloning:

Callers

nothing calls this directly

Calls 2

get_compilerMethod · 0.80
results_iterMethod · 0.80

Tested by

no test coverage detected