mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-08-02 03:00:09 +03:00
Update query.py
Fixed a bug with double Q object negation: `~(~Q(condition=True))` was equal to `~Q(condition=True)` before this fix
This commit is contained in:
parent
09aeddf677
commit
f9d247bf14
|
@ -262,7 +262,7 @@ class Q(object):
|
|||
|
||||
def __invert__(self):
|
||||
q = copy(self)
|
||||
q._negate = True
|
||||
q._negate = not q._negate
|
||||
return q
|
||||
|
||||
def __bool__(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user