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

Method __iter__

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

Source from the content-addressed store, hash-verified

252 """
253
254 def __iter__(self):
255 queryset = self.queryset
256 query = queryset.query
257 compiler = query.get_compiler(queryset.db)
258 return compiler.results_iter(
259 tuple_expected=True,
260 chunked_fetch=self.chunked_fetch,
261 chunk_size=self.chunk_size,
262 )
263
264
265class NamedValuesListIterable(ValuesListIterable):

Callers

nothing calls this directly

Calls 2

get_compilerMethod · 0.80
results_iterMethod · 0.80

Tested by

no test coverage detected