added Q object support to QuerySet.filter
This commit is contained in:
parent
d85ee4e051
commit
b375c41586
@ -160,7 +160,7 @@ class QuerySet(object):
|
|||||||
self._query.update(query)
|
self._query.update(query)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def filter(self, **query):
|
def filter(self, *q_objs, **query):
|
||||||
return self.__call__(**query)
|
return self.__call__(**query)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
x
Reference in New Issue
Block a user