agency.models.person
¶
Module Contents¶
Classes¶
An extended version of the standard person from onegov.people. |
- class agency.models.person.ExtendedPerson[source]¶
Bases:
onegov.people.Person
,onegov.org.models.extensions.AccessExtension
,onegov.org.models.extensions.PublicationExtension
An extended version of the standard person from onegov.people.
- property es_public: bool[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.
- 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)