From 2cf76f2d5d1aa16acfadaf53db3d30128a34b088 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Wed, 31 May 2023 18:04:17 -0400 Subject: Fixed #34612 -- Fixed QuerySet.only() crash on reverse relationships. Regression in b3db6c8dcb5145f7d45eff517bcd96460475c879. Thanks Ian Cubitt for the report. This also corrected test_inheritance_deferred2() test which was previously properly defined and marked as an expected failure but was then wrongly adjusted to mask the lack of support for per-alias deferral that was fixed by #21204. --- docs/releases/4.2.2.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/releases/4.2.2.txt b/docs/releases/4.2.2.txt index fef5d8d364..1bada4073b 100644 --- a/docs/releases/4.2.2.txt +++ b/docs/releases/4.2.2.txt @@ -20,6 +20,9 @@ Bugfixes when passing a ``ManyToManyField`` or ``GenericForeignKey`` reference. While doing so is a no-op, it was allowed in older version (:ticket:`34570`). +* Fixed a regression in Django 4.2 that caused a crash of ``QuerySet.only()`` + when passing a reverse ``OneToOneField`` reference (:ticket:`34612`). + * Fixed a bug in Django 4.2 where :option:`makemigrations --update` didn't respect the ``--name`` option (:ticket:`34568`). -- cgit v1.3