(ref_cls, dbref)
| 1343 | |
| 1344 | @staticmethod |
| 1345 | def _lazy_load_ref(ref_cls, dbref): |
| 1346 | dereferenced_son = ref_cls._get_db().dereference(dbref) |
| 1347 | if dereferenced_son is None: |
| 1348 | raise DoesNotExist(f"Trying to dereference unknown document {dbref}") |
| 1349 | |
| 1350 | return ref_cls._from_son(dereferenced_son) |
| 1351 | |
| 1352 | def __get__(self, instance, owner): |
| 1353 | if instance is None: |
no test coverage detected