election_day.models.screen

Classes

ScreenType

Screen

Mixin providing a meta/content JSON pair. Meta is a JSON column loaded

Module Contents

class election_day.models.screen.ScreenType(type_: str)[source]
types = ('simple_vote', 'complex_vote', 'majorz_election', 'proporz_election', 'election_compound',...[source]
property categories: tuple[str, Ellipsis][source]
class election_day.models.screen.Screen[source]

Bases: onegov.core.orm.Base, onegov.core.orm.mixins.ContentMixin, onegov.core.orm.mixins.TimestampMixin

Mixin providing a meta/content JSON pair. Meta is a JSON column loaded with each request, content is a JSON column loaded deferred (to be shown only in the detail view).

__tablename__ = 'election_day_screens'[source]
id: Column[int][source]
number: Column[int][source]
vote_id: Column[str | None][source]
vote: relationship[Vote | None][source]
election_id: Column[str | None][source]
election: relationship[Election | None][source]
election_compound_id: Column[str | None][source]
election_compound: relationship[ElectionCompound | None][source]
domain: Column[str | None][source]
domain_segment: Column[str | None][source]
property election_compound_part: onegov.election_day.models.election_compound.ElectionCompoundPart | None[source]
description: Column[str | None][source]
type: Column[str][source]
structure: Column[str][source]
css: Column[str | None][source]
group: Column[str | None][source]
duration: Column[int | None][source]
property model: onegov.election_day.models.election.Election | onegov.election_day.models.election_compound.ElectionCompound | onegov.election_day.models.election_compound.ElectionCompoundPart | onegov.election_day.models.vote.Vote | None[source]
property screen_type: ScreenType[source]
property last_modified: datetime | None[source]
property next: Screen | None[source]