Added all() method to get all document instances from a document. Extended the FileField's tests with testing on empty filefield.
This commit is contained in:
@@ -238,6 +238,10 @@ class QuerySet(object):
|
||||
"""An alias of :meth:`~mongoengine.queryset.QuerySet.__call__`
|
||||
"""
|
||||
return self.__call__(*q_objs, **query)
|
||||
|
||||
def all(self):
|
||||
"""Returns all documents."""
|
||||
return self.__call__()
|
||||
|
||||
@property
|
||||
def _collection(self):
|
||||
|
Reference in New Issue
Block a user