From ea81c9d343a400b537caaafb47d03676c03df246 Mon Sep 17 00:00:00 2001 From: James Ostrander Date: Fri, 19 Apr 2024 14:44:54 -0400 Subject: [5.0.x] Fixed #35392, Refs #34331 -- Allowed importing aprefetch_related_objects from django.db.models. Thanks James Ostrander for the report and fix, and to Tim Graham and Mariusz Felisiak for the reviews. Backport of 36b7024b7fc881b319a2b67876e4f72ba680d6a8 from main --- docs/releases/5.0.5.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.0.5.txt b/docs/releases/5.0.5.txt index 788753c826..8836b86131 100644 --- a/docs/releases/5.0.5.txt +++ b/docs/releases/5.0.5.txt @@ -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`). -- cgit v1.3