MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / none

Method none

mongoengine/queryset/base.py:791–797  ·  view source on GitHub ↗

Returns a queryset that never returns any objects and no query will be executed when accessing the results inspired by django none() https://docs.djangoproject.com/en/dev/ref/models/querysets/#none

(self)

Source from the content-addressed store, hash-verified

789 return doc_map
790
791 def none(self):
792 """Returns a queryset that never returns any objects and no query will be executed when accessing the results
793 inspired by django none() https://docs.djangoproject.com/en/dev/ref/models/querysets/#none
794 """
795 queryset = self.clone()
796 queryset._none = True
797 return queryset
798
799 def no_sub_classes(self):
800 """Filter for only the instances of this specific document.

Callers 3

test_noneMethod · 0.80
test_count_and_noneMethod · 0.80

Calls 1

cloneMethod · 0.95

Tested by 3

test_noneMethod · 0.64
test_count_and_noneMethod · 0.64