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

Method document_type

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

Source from the content-addressed store, hash-verified

2440
2441 @property
2442 def document_type(self):
2443 if isinstance(self.document_type_obj, str):
2444 if self.document_type_obj == RECURSIVE_REFERENCE_CONSTANT:
2445 self.document_type_obj = self.owner_document
2446 else:
2447 self.document_type_obj = get_document(self.document_type_obj)
2448 return self.document_type_obj
2449
2450 def build_lazyref(self, value):
2451 if isinstance(value, LazyReference):

Callers

nothing calls this directly

Calls 1

get_documentFunction · 0.90

Tested by

no test coverage detected