mirror of
https://github.com/django/django.git
synced 2025-08-24 12:34:09 +00:00
Fixed #29066 -- Allowed negating query expressions.
This commit is contained in:
parent
6b2f8fb91c
commit
617d5f410f
5 changed files with 17 additions and 3 deletions
|
@ -65,6 +65,9 @@ class Combinable:
|
|||
# OPERATORS #
|
||||
#############
|
||||
|
||||
def __neg__(self):
|
||||
return self._combine(-1, self.MUL, False)
|
||||
|
||||
def __add__(self, other):
|
||||
return self._combine(other, self.ADD, False)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue