From 2b6a3baebe70e4d481dd256bdb774ac15e248540 Mon Sep 17 00:00:00 2001 From: Albert Defler Date: Sat, 5 Feb 2022 20:00:20 +0000 Subject: Fixed #31486 -- Deprecated passing unsaved objects to related filters. Co-Authored-By: Hasan Ramezani --- docs/internals/deprecation.txt | 2 ++ docs/releases/4.1.txt | 3 +++ 2 files changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 4818846bea..11f69b1844 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -85,6 +85,8 @@ details on these changes. objects without providing the ``chunk_size`` argument will no longer be allowed. +* Passing unsaved model instances to related filters will no longer be allowed. + .. _deprecation-removed-in-4.1: 4.1 diff --git a/docs/releases/4.1.txt b/docs/releases/4.1.txt index e3112ad0f5..dafee5271f 100644 --- a/docs/releases/4.1.txt +++ b/docs/releases/4.1.txt @@ -484,6 +484,9 @@ Miscellaneous versions, no prefetching was done. Providing a value for ``chunk_size`` signifies that the additional query per chunk needed to prefetch is desired. +* Passing unsaved model instances to related filters is deprecated. In Django + 5.0, the exception will be raised. + Features removed in 4.1 ======================= -- cgit v1.3