MCPcopy
hub / github.com/django/django / _prefetch_related_objects

Method _prefetch_related_objects

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

Source from the content-addressed store, hash-verified

1463 return await sync_to_async(self.contains)(obj=obj)
1464
1465 def _prefetch_related_objects(self):
1466 # This method can only be called once the result cache has been filled.
1467 prefetch_related_objects(self._result_cache, *self._prefetch_related_lookups)
1468 self._prefetch_done = True
1469
1470 def explain(self, *, format=None, **options):
1471 """

Callers 1

_fetch_allMethod · 0.95

Calls 1

prefetch_related_objectsFunction · 0.85

Tested by

no test coverage detected