people.models.person
¶
Module Contents¶
Classes¶
A person. |
- class people.models.person.Person[source]¶
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.ContentMixin
,onegov.core.orm.mixins.TimestampMixin
,onegov.search.ORMSearchable
,onegov.core.orm.mixins.UTCPublicationMixin
A person.
- property es_suggestion: tuple[str, Ellipsis][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 spoken_title: str[source]¶
Returns the Western-ordered name. Includes the academic title if available.
- property memberships_by_agency: list[onegov.people.models.AgencyMembership][source]¶
Returns the memberships sorted alphabetically by the agency.