mirror of https://github.com/django/django.git
Thanks James Ostrander for the report and fix, and to Tim Graham and Mariusz Felisiak for the reviews.
This commit is contained in:
parent
53719d6b5b
commit
36b7024b7f
|
@ -46,7 +46,12 @@ from django.db.models.indexes import * # NOQA
|
|||
from django.db.models.indexes import __all__ as indexes_all
|
||||
from django.db.models.lookups import Lookup, Transform
|
||||
from django.db.models.manager import Manager
|
||||
from django.db.models.query import Prefetch, QuerySet, prefetch_related_objects
|
||||
from django.db.models.query import (
|
||||
Prefetch,
|
||||
QuerySet,
|
||||
aprefetch_related_objects,
|
||||
prefetch_related_objects,
|
||||
)
|
||||
from django.db.models.query_utils import FilteredRelation, Q
|
||||
|
||||
# Imports that would create circular imports if sorted
|
||||
|
@ -104,6 +109,7 @@ __all__ += [
|
|||
"Prefetch",
|
||||
"Q",
|
||||
"QuerySet",
|
||||
"aprefetch_related_objects",
|
||||
"prefetch_related_objects",
|
||||
"DEFERRED",
|
||||
"Model",
|
||||
|
|
|
@ -20,3 +20,6 @@ Bugfixes
|
|||
* Fixed a bug in Django 5.0 that caused a crash when applying migrations
|
||||
including alterations to ``GeneratedField`` such as setting ``db_index=True``
|
||||
on SQLite (:ticket:`35373`).
|
||||
|
||||
* Allowed importing ``aprefetch_related_objects`` from ``django.db.models``
|
||||
(:ticket:`35392`).
|
||||
|
|
Loading…
Reference in New Issue