diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/models/conditional-expressions.txt | 4 | ||||
| -rw-r--r-- | docs/releases/3.2.txt | 3 |
2 files changed, 7 insertions, 0 deletions
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`` -------- diff --git a/docs/releases/3.2.txt b/docs/releases/3.2.txt index 7aa01dcc23..2d49299440 100644 --- a/docs/releases/3.2.txt +++ b/docs/releases/3.2.txt @@ -178,6 +178,9 @@ Models supported on PostgreSQL, allows acquiring weaker locks that don't block the creation of rows that reference locked rows through a foreign key. +* :class:`When() <django.db.models.expressions.When>` expression now allows + using the ``condition`` argument with ``lookups``. + Requests and Responses ~~~~~~~~~~~~~~~~~~~~~~ |
