Added none() to queryset (MongoEngine/mongoengine#127)
This commit is contained in:
@@ -489,6 +489,10 @@ class QuerySet(object):
|
||||
self._iter = False
|
||||
self._cursor.rewind()
|
||||
|
||||
def none(self):
|
||||
"""Helper that just returns a list"""
|
||||
return []
|
||||
|
||||
def count(self):
|
||||
"""Count the selected elements in the query.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user