gazette.collections.organizations ================================= .. py:module:: gazette.collections.organizations Classes ------- .. autoapisummary:: gazette.collections.organizations.OrganizationCollection Module Contents --------------- .. py:class:: OrganizationCollection(session: sqlalchemy.orm.session.Session) Bases: :py:obj:`onegov.core.orm.abstract.AdjacencyListCollection`\ [\ :py:obj:`onegov.gazette.models.Organization`\ ] Manage a list of organizations. The list is ordered manually (through migration and/or backend). .. py:attribute:: __listclass__ The list class this collection handles. Must inherit from :class:`AdjacencyList`. .. py:method:: get_unique_child_name(name: str, parent: onegov.gazette.models.Organization | None) -> str Returns a unique name by treating the names as unique integers and returning the next value.