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

Method document_type

mongoengine/fields.py:1172–1178  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1170
1171 @property
1172 def document_type(self):
1173 if isinstance(self.document_type_obj, str):
1174 if self.document_type_obj == RECURSIVE_REFERENCE_CONSTANT:
1175 self.document_type_obj = self.owner_document
1176 else:
1177 self.document_type_obj = get_document(self.document_type_obj)
1178 return self.document_type_obj
1179
1180 @staticmethod
1181 def _lazy_load_ref(ref_cls, dbref):

Callers

nothing calls this directly

Calls 1

get_documentFunction · 0.90

Tested by

no test coverage detected