From 587b179d4115f2e4dbc425d1ae035be9eb22197b Mon Sep 17 00:00:00 2001 From: Ryan Heard Date: Tue, 19 May 2020 00:47:56 -0500 Subject: Fixed #31606 -- Allowed using condition with lookups in When() expression. --- docs/ref/models/conditional-expressions.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/models/conditional-expressions.txt b/docs/ref/models/conditional-expressions.txt index 7616b98e0a..a1e2430ec1 100644 --- a/docs/ref/models/conditional-expressions.txt +++ b/docs/ref/models/conditional-expressions.txt @@ -81,6 +81,10 @@ Keep in mind that each of these values can be an expression. >>> When(then__exact=0, then=1) >>> When(Q(then=0), then=1) +.. versionchanged:: 3.2 + + Support for using the ``condition`` argument with ``lookups`` was added. + ``Case`` -------- -- cgit v1.3