gazette.collections.organizations

Classes

OrganizationCollection

Manage a list of organizations.

Module Contents

class gazette.collections.organizations.OrganizationCollection(session: sqlalchemy.orm.session.Session)[source]

Bases: onegov.core.orm.abstract.AdjacencyListCollection[onegov.gazette.models.Organization]

Manage a list of organizations.

The list is ordered manually (through migration and/or backend).

__listclass__[source]
get_unique_child_name(name: str, parent: onegov.gazette.models.Organization | None) str[source]

Returns a unique name by treating the names as unique integers and returning the next value.