Class | QuerySet |
Represent a lazy database lookup for a set of objects. |
Constant | MAX_GET_RESULTS |
Undocumented |
Constant | REPR_OUTPUT_SIZE |
Undocumented |
Class | BaseIterable |
Undocumented |
Class | EmptyQuerySet |
Marker class to checking if a queryset is empty by .none(): isinstance(qs.none(), EmptyQuerySet) -> True |
Class | FlatValuesListIterable |
Iterable returned by QuerySet.values_list(flat=True) that yields single values. |
Class | InstanceCheckMeta |
Undocumented |
Class | ModelIterable |
Iterable that yields a model instance for each row. |
Class | NamedValuesListIterable |
Iterable returned by QuerySet.values_list(named=True) that yields a namedtuple for each row. |
Class | Prefetch |
Undocumented |
Class | RawQuerySet |
Provide an iterator which converts the results of raw SQL queries into annotated model instances. |
Class | RelatedPopulator |
RelatedPopulator is used for select_related() object instantiation. |
Class | ValuesIterable |
Iterable returned by QuerySet.values() that yields a dict for each row. |
Class | ValuesListIterable |
Iterable returned by QuerySet.values_list(flat=False) that yields a tuple for each row. |
Function | get_prefetcher |
No summary |
Function | get_related_populators |
Undocumented |
Function | normalize_prefetch_lookups |
Normalize lookups into Prefetch objects. |
Function | prefetch_one_level |
Helper function for prefetch_related_objects(). |
Function | prefetch_related_objects |
Populate prefetched object caches for a list of model instances based on the lookups/Prefetch instances given. |
For the attribute 'through_attr' on the given instance, find an object that has a get_prefetch_queryset(). Return a 4 tuple containing: (the object with get_prefetch_queryset (or None),
the descriptor object representing this relationship (or None), a boolean that is False if the attribute was not found at all, a function that takes an instance and returns a boolean that is True if the attribute has already been fetched for that instance)
Helper function for prefetch_related_objects().
Run prefetches on all instances using the prefetcher object, assigning results to relevant caches in instance.
Return the prefetched objects along with any additional prefetches that must be done due to prefetch_related lookups found from default managers.