pas.models.party

Classes

Party

Mixin providing a meta/content JSON pair. Meta is a JSON column loaded

Module Contents

class pas.models.party.Party[source]

Bases: onegov.core.orm.Base, onegov.core.orm.mixins.ContentMixin, onegov.core.orm.mixins.TimestampMixin, onegov.search.ORMSearchable

Mixin providing a meta/content JSON pair. Meta is a JSON column loaded with each request, content is a JSON column loaded deferred (to be shown only in the detail view).

__tablename__ = 'par_parties'[source]
es_type_name = 'pas_party'[source]

Returns the unique type name of the model.

es_public = False[source]

Returns True if the model is available to be found by the public. If false, only editors/admins will see this object in the search results.

es_properties[source]
type: sqlalchemy.Column[str][source]
__mapper_args__[source]
property es_suggestion: str[source]

Returns suggest-as-you-type value of the document. The field used for this property should also be indexed, or the suggestion will lead to nowhere.

If a single string is returned, the completion input equals the completion output. (My Title -> My Title)

If an array of strings is returned, all values are possible inputs and the first value is the output. (My Title/Title My -> My Title)

property title: str[source]
id: sqlalchemy.Column[uuid.UUID][source]
external_kub_id: sqlalchemy.Column[uuid.UUID | None][source]
name: sqlalchemy.Column[str][source]
start: sqlalchemy.Column[datetime.date | None][source]
end: sqlalchemy.Column[datetime.date | None][source]
portrait[source]
description[source]
roles: sqlalchemy.orm.relationship[list[onegov.pas.models.PASParliamentarianRole]][source]
__repr__() str[source]