add Q object

This commit is contained in:
Maxim Kurnikov
2018-11-13 18:39:39 +03:00
parent 17be428776
commit 4f828f7644
2 changed files with 13 additions and 2 deletions

View File

@@ -13,4 +13,5 @@ from .deletion import (CASCADE as CASCADE,
SET_DEFAULT as SET_DEFAULT, SET_DEFAULT as SET_DEFAULT,
SET_NULL as SET_NULL, SET_NULL as SET_NULL,
DO_NOTHING as DO_NOTHING) DO_NOTHING as DO_NOTHING)
from .query import QuerySet as QuerySet from .query import QuerySet as QuerySet
from .query_utils import Q as Q

View File

@@ -1,2 +1,12 @@
class RegisterLookupMixin: class RegisterLookupMixin:
pass pass
class Q(object):
def __init__(self, *args, **kwargs) -> None: ...
def __or__(self, other: Q) -> Q: ...
def __and__(self, other: Q) -> Q: ...
def __invert__(self) -> Q: ...