HierarchicalRootModel

class app.util.models.hierarchical_root.HierarchicalRootModel[source]

Bases: SingleInitializationModel, HierarchicalMixinMinimal

Inheritance diagram of HierarchicalRootModel

Inheritance Diagram for HierarchicalRootModel

Methods

model_post_init(context)

Attributes

PROPAGATE_FROM_PARENT

PROPAGATE_INSTANCE_PARENT_FROM_PARENT

PROPAGATE_INSTANCE_PARENT_FROM_PARENT_TO_CHILDREN

PROPAGATE_INSTANCE_PARENT_TO_CHILDREN

PROPAGATE_TO_CHILDREN

instance_parent

model_config

Configuration for the model, should be a dictionary conforming to ConfigDict.

PROPAGATE_FROM_PARENT: ClassVar[bool] = True
PROPAGATE_INSTANCE_PARENT_FROM_PARENT: ClassVar[bool] = True
PROPAGATE_INSTANCE_PARENT_FROM_PARENT_TO_CHILDREN: ClassVar[bool] = False
PROPAGATE_INSTANCE_PARENT_TO_CHILDREN: ClassVar[bool] = True
PROPAGATE_TO_CHILDREN: ClassVar[bool] = True
property instance_parent: ParentType | None
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'serialize_by_alias': True, 'validate_assignment': True, 'validate_by_alias': True}

Configuration for the model, should be a dictionary conforming to ConfigDict.

model_post_init(context: Any) None
Parameters:

context (Any)

Return type:

None