(self)
| 99 | |
| 100 | @cached_property |
| 101 | def history_record(self) -> typing.Optional[Model]: |
| 102 | if not (self.history_record_class_path and self.history_record_id): |
| 103 | # There are still AuditLog records that will not have this detail |
| 104 | # for example, audit log records which are created when segment |
| 105 | # override priorities are changed. |
| 106 | return # type: ignore[return-value] |
| 107 | |
| 108 | klass = self.get_history_record_model_class(self.history_record_class_path) |
| 109 | return klass.objects.filter(history_id=self.history_record_id).first() # type: ignore[attr-defined,no-any-return] # noqa: E501 |
| 110 | |
| 111 | @property |
| 112 | def project_name(self) -> str: |
nothing calls this directly
no test coverage detected