From 617d5f410fdd5c491c929e5d66ce6f5aa95e45ee Mon Sep 17 00:00:00 2001 From: priyanshsaxena Date: Sun, 28 Jan 2018 15:57:15 +0530 Subject: Fixed #29066 -- Allowed negating query expressions. --- docs/ref/models/expressions.txt | 10 +++++++--- docs/releases/2.1.txt | 2 ++ 2 files changed, 9 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index fcd88a58a2..8ca975cc3a 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -13,9 +13,13 @@ more complex computations. Supported arithmetic ==================== -Django supports addition, subtraction, multiplication, division, modulo -arithmetic, and the power operator on query expressions, using Python constants, -variables, and even other expressions. +Django supports negation, addition, subtraction, multiplication, division, +modulo arithmetic, and the power operator on query expressions, using Python +constants, variables, and even other expressions. + +.. versionchanged:: 2.1 + + Support for negation was added. Some examples ============= diff --git a/docs/releases/2.1.txt b/docs/releases/2.1.txt index a2aa2e8379..f1c3011c9d 100644 --- a/docs/releases/2.1.txt +++ b/docs/releases/2.1.txt @@ -178,6 +178,8 @@ Models :class:`~django.db.models.DateField` and :class:`~django.db.models.DateTimeField` to the Monday of a week. +* Query expressions can now be negated using a minus sign. + Requests and Responses ~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3