(self, name)
| 461 | return document[name] |
| 462 | |
| 463 | def __getattr__(self, name): |
| 464 | if not object.__getattribute__(self, "passthrough"): |
| 465 | raise AttributeError() |
| 466 | document = self.fetch() |
| 467 | try: |
| 468 | return document[name] |
| 469 | except KeyError: |
| 470 | raise AttributeError() |
| 471 | |
| 472 | def __repr__(self): |
| 473 | return f"<LazyReference({self.document_type}, {self.pk!r})>" |
nothing calls this directly
no test coverage detected