Return the default queryset corresponding to this document.
(self)
| 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): |