1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #35135 -- Made FilteredRelation raise ValueError on querysets as rhs.

Regression in 59f4754704.
This commit is contained in:
Nicolas Delaby
2024-01-23 11:51:24 +01:00
committed by Mariusz Felisiak
parent a5365339ea
commit 820c5f1bac
3 changed files with 25 additions and 0 deletions

View File

@@ -19,3 +19,8 @@ Bugfixes
* Fixed a bug in Django 5.0 that caused a crash of ``Model.full_clean()`` on
models with a ``GeneratedField`` (:ticket:`35127`).
* Fixed a regression in Django 5.0 that caused a crash of
``FilteredRelation()`` with querysets as right-hand sides (:ticket:`35135`).
``FilteredRelation()`` now raises a ``ValueError`` on querysets as right-hand
sides.