org.models.organisation
Contains the model describing the organisation proper.
Classes
Defines the basic information associated with an organisation. |
Functions
Module Contents
- class org.models.organisation.Organisation[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.TimestampMixin
Defines the basic information associated with an organisation.
It is assumed that there’s only one organisation record in the schema!
- newsletter_categories: onegov.core.orm.mixins.dict_property[dict[str, list[dict[str, list[str]] | str]]][source]
- property public_identity: str[source]
The public identity is a globally unique SHA 256 hash of the current organisation.
Basically, this is the database record of the database, but mangled for security and because it is cooler 😎.
This value can be accessed through /identity.
- property holidays: onegov.org.models.swiss_holidays.SwissHolidays[source]
Returns a SwissHolidays instance, as configured by the holiday_settings on the UI.
- property has_school_holidays: bool[source]
Returns whether any school holidays have been configured