Bases: onegov.core.orm.Base
, onegov.core.orm.mixins.ContentMixin
, onegov.core.orm.mixins.TimestampMixin
, onegov.search.ORMSearchable
, onegov.core.orm.mixins.UTCPublicationMixin
A membership to an agency.
-
property siblings_by_agency: Query[Self][source]
Returns a query that includes all siblings by agency, including
the item itself ordered by order_within_agency.
-
property siblings_by_person: Query[Self][source]
Returns a query that includes all siblings by person, including
the item itself ordered by order_within_person.
-
__tablename__ = 'agency_memberships'[source]
-
type: Column[str][source]
-
__mapper_args__[source]
-
es_public = True[source]
-
es_properties[source]
-
id: Column[uuid.UUID][source]
-
agency_id: Column[int][source]
-
agency: relationship[Agency][source]
-
person_id: Column[uuid.UUID][source]
-
person: relationship[Person][source]
-
order_within_agency: Column[int][source]
-
order_within_person: Column[int][source]
-
title: Column[str][source]
-
since: Column[str | None][source]
-
vcard(exclude: Collection[str] | None = None) → str[source]
Returns the person as vCard (3.0).
Allows to specify the included attributes, provides a reasonable
default if none are specified. Always includes the first and last
name.