event.models.mixins

Classes

OccurrenceMixin

Contains all attributes events and ocurrences share.

Module Contents

class event.models.mixins.OccurrenceMixin[source]

Bases: onegov.core.orm.mixins.ContentMixin

Contains all attributes events and ocurrences share.

The start and end date and times are stored in UTC - that is, they are stored internally without a timezone and are converted to UTC when getting or setting, see UTCDateTime. Use the properties localized_start and localized_end to get the localized version of the date and times.

title: Column[str][source]
name: Column[str | None][source]
location: Column[str | None][source]
_tags: Column[dict[str, str] | None][source]
property tags: list[str][source]

Tags/Categories of the event.

filter_keywords: dict_property[dict[str, list[str] | str]][source]
timezone: Column[str][source]
start: Column[datetime][source]
property localized_start: datetime.datetime[source]

The localized version of the start date/time.

end: Column[datetime][source]
property localized_end: datetime.datetime[source]

The localized version of the end date/time.

filter_keywords_ordered() dict[str, list[str] | str | None][source]