MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / history_record

Method history_record

api/audit/models.py:101–109  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected