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

Method _lazy_load_refs

mongoengine/base/fields.py:323–331  ·  view source on GitHub ↗
(instance, name, ref_values, *, max_depth)

Source from the content-addressed store, hash-verified

321
322 @staticmethod
323 def _lazy_load_refs(instance, name, ref_values, *, max_depth):
324 _dereference = _import_class("DeReference")()
325 documents = _dereference(
326 ref_values,
327 max_depth=max_depth,
328 instance=instance,
329 name=name,
330 )
331 return documents
332
333 def __set__(self, instance, value):
334 # Some fields e.g EnumField are converted upon __set__

Callers 1

__get__Method · 0.95

Calls 1

_import_classFunction · 0.90

Tested by

no test coverage detected