MCPcopy
hub / github.com/django/django / aprefetch_related_objects

Function aprefetch_related_objects

django/db/models/query.py:2754–2758  ·  view source on GitHub ↗

See prefetch_related_objects().

(model_instances, *related_lookups)

Source from the content-addressed store, hash-verified

2752
2753
2754async def aprefetch_related_objects(model_instances, *related_lookups):
2755 """See prefetch_related_objects()."""
2756 return await sync_to_async(prefetch_related_objects)(
2757 model_instances, *related_lookups
2758 )
2759
2760
2761def get_prefetcher(instance, through_attr, to_attr):

Callers 1

aiteratorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected