mixins.isolating

Provides functionality to scope accounting objects to a single Entity.

Module Contents

Classes

IsolatingMixin

This class enables isolating by Entity for accounting objects.

class mixins.isolating.IsolatingMixin

This class enables isolating by Entity for accounting objects.

entity_id

The id of the Entity to which the model belongs.

Type:

int

entity_id: sqlalchemy.orm.Mapped[int]
entity() sqlalchemy.orm.Mapped[Entity]

Returns the Entity of the instance.