diff options
| author | Simon Charette <charette.s@gmail.com> | 2023-05-31 18:04:17 -0400 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-06-01 20:27:06 +0100 |
| commit | 738386470d899c61cb1980233c1e7872ba78e679 (patch) | |
| tree | 22a61a0b82c4fbec2faf15d3527dbfcf7b92c047 /docs | |
| parent | dae052d823dd66edcd0dd7fe5542d2c6a3a498d0 (diff) | |
[4.2.x] 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.
Backport of 2cf76f2d5d1aa16acfadaf53db3d30128a34b088 from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/releases/4.2.2.txt | 3 |
1 files changed, 3 insertions, 0 deletions
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`). |
