(ref_cls, dbref)
| 1487 | |
| 1488 | @staticmethod |
| 1489 | def _lazy_load_ref(ref_cls, dbref): |
| 1490 | dereferenced_son = ref_cls._get_db().dereference(dbref) |
| 1491 | if dereferenced_son is None: |
| 1492 | raise DoesNotExist(f"Trying to dereference unknown document {dbref}") |
| 1493 | |
| 1494 | return ref_cls._from_son(dereferenced_son) |
| 1495 | |
| 1496 | def __get__(self, instance, owner): |
| 1497 | if instance is None: |
no test coverage detected