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

Method _qs

mongoengine/document.py:617–622  ·  view source on GitHub ↗

Return the default queryset corresponding to this document.

(self)

Source from the content-addressed store, hash-verified

615
616 @property
617 def _qs(self):
618 """Return the default queryset corresponding to this document."""
619 if not hasattr(self, "__objects"):
620 queryset_class = self._meta.get("queryset_class", QuerySet)
621 self.__objects = queryset_class(self.__class__, self._get_collection())
622 return self.__objects
623
624 @property
625 def _object_key(self):

Callers 2

modifyMethod · 0.95

Calls 2

_get_collectionMethod · 0.95
getMethod · 0.45

Tested by 1