From 2bf4c5b9eaaf0a36cb0fb6c060625a5fb2fcf6c9 Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sat, 24 May 2025 14:03:07 -0400 Subject: [5.2.x] Fixed #36416 -- Made QuerySet.in_bulk() account for composite pks in id_list. Backport of 26313bc21932d0d3af278ab387549d63b1f64575 from main. --- docs/releases/5.2.2.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/releases/5.2.2.txt b/docs/releases/5.2.2.txt index 5647c0cc07..3870a3efa4 100644 --- a/docs/releases/5.2.2.txt +++ b/docs/releases/5.2.2.txt @@ -34,3 +34,7 @@ Bugfixes * Fixed a regression in Django 5.2 where admin's ``filter_horizontal`` buttons lacked ``type="button"``, causing them to intercept form submission when pressing the Enter key (:ticket:`36423`). + +* Fixed a bug in Django 5.2 where calling ``QuerySet.in_bulk()`` with an + ``id_list`` argument on models with a ``CompositePrimaryKey`` failed to + observe database parameter limits (:ticket:`36416`). -- cgit v1.3