agency.models.agency
¶
Module Contents¶
Classes¶
A PDF containing all data of an agency and its suborganizations. |
|
An extended version of the standard agency from onegov.people. |
|
A proxy/alias for an agency. |
- class agency.models.agency.AgencyPdf[source]¶
Bases:
onegov.file.File
A PDF containing all data of an agency and its suborganizations.
- class agency.models.agency.ExtendedAgency(title: str, parent: Self | None = None, **kwargs: Any)[source]¶
Bases:
onegov.people.Agency
,onegov.org.models.extensions.AccessExtension
,onegov.org.models.extensions.PublicationExtension
An extended version of the standard agency 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 pdf_file: StoredFile | None[source]¶
Returns the PDF content for the agency (and all its suborganizations).
- property portrait_html: str | None[source]¶
Returns the portrait that is saved as HTML from the redactor js plugin.
- role_mappings: relationship[list[RoleMapping]][source]¶
- proxy() AgencyProxy [source]¶
Returns a proxy object to this agency allowing alternative linking paths.