added queryset chaining via 'filter' method. test included.
This commit is contained in:
parent
42a58dda57
commit
cfc394963f
3 changed files with 41 additions and 1 deletions
|
|
@ -62,6 +62,9 @@ class QuerySet(object):
|
|||
query = QuerySet._transform_query(_doc_cls=self._document, **query)
|
||||
self._query.update(query)
|
||||
return self
|
||||
|
||||
def filter(self, **query):
|
||||
return self.__call__(**query)
|
||||
|
||||
@property
|
||||
def _collection(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue