Entity
- class app.portfolio.models.entity.Entity[source]
Bases:
LoggableHierarchicalModel
Inheritance Diagram for Entity
Methods
calculate_instance_name_from_instance
(instance)from_uid
(uid)model_post_init
(context)uid_namespace
(data)Returns the namespace for the UID.
update
(**kwargs)Creates a new instance of the entity with the updated data.
Attributes
Configuration for the model, should be a dictionary conforming to
ConfigDict
.Indicates whether this entity instance has been superseded by another instance with an incremented version.
instance_parent
-
entity_log:
EntityAuditLog
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'frozen': True}
Configuration for the model, should be a dictionary conforming to
ConfigDict
.
- property superseded: bool
Indicates whether this entity instance has been superseded by another instance with an incremented version.
- classmethod uid_namespace(data)[source]
Returns the namespace for the UID. This can be overridden in subclasses to provide a custom namespace.
-
entity_log: