mirror of
https://github.com/django/django.git
synced 2025-03-15 11:50:46 +00:00
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.indexes import __all__ as indexes_all
|
||||||
from django.db.models.lookups import Lookup, Transform
|
from django.db.models.lookups import Lookup, Transform
|
||||||
from django.db.models.manager import Manager
|
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
|
from django.db.models.query_utils import FilteredRelation, Q
|
||||||
|
|
||||||
# Imports that would create circular imports if sorted
|
# Imports that would create circular imports if sorted
|
||||||
@ -104,6 +109,7 @@ __all__ += [
|
|||||||
"Prefetch",
|
"Prefetch",
|
||||||
"Q",
|
"Q",
|
||||||
"QuerySet",
|
"QuerySet",
|
||||||
|
"aprefetch_related_objects",
|
||||||
"prefetch_related_objects",
|
"prefetch_related_objects",
|
||||||
"DEFERRED",
|
"DEFERRED",
|
||||||
"Model",
|
"Model",
|
||||||
|
@ -20,3 +20,6 @@ Bugfixes
|
|||||||
* Fixed a bug in Django 5.0 that caused a crash when applying migrations
|
* Fixed a bug in Django 5.0 that caused a crash when applying migrations
|
||||||
including alterations to ``GeneratedField`` such as setting ``db_index=True``
|
including alterations to ``GeneratedField`` such as setting ``db_index=True``
|
||||||
on SQLite (:ticket:`35373`).
|
on SQLite (:ticket:`35373`).
|
||||||
|
|
||||||
|
* Allowed importing ``aprefetch_related_objects`` from ``django.db.models``
|
||||||
|
(:ticket:`35392`).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user