page.model

A OneGov Page is an Adjacency List used to represent pages with any kind of content in a hierarchy.

See also: https://docs.sqlalchemy.org/en/rel_0_9/orm/self_referential.html

Classes

Page

Defines a generic page.

Module Contents

class page.model.Page(title: str, parent: Self | None = None, **kwargs: Any)[source]

Bases: onegov.core.orm.abstract.AdjacencyList, onegov.core.orm.mixins.ContentMixin, onegov.core.orm.mixins.TimestampMixin, onegov.core.orm.mixins.UTCPublicationMixin, onegov.file.MultiAssociatedFiles

Defines a generic page.

__tablename__ = 'pages'[source]
parent: sqlalchemy.orm.relationship[Page | None][source]