Added none() to queryset (MongoEngine/mongoengine#127)

This commit is contained in:
Ross Lawley
2012-11-07 13:51:02 +00:00
parent 99fe1da345
commit 9ca96e4e17
3 changed files with 13 additions and 0 deletions

View File

@@ -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.
"""