election_day.models.screen ========================== .. py:module:: election_day.models.screen Classes ------- .. autoapisummary:: election_day.models.screen.ScreenType election_day.models.screen.Screen Module Contents --------------- .. py:class:: ScreenType(type_: str) .. py:attribute:: types :value: ('simple_vote', 'complex_vote', 'majorz_election', 'proporz_election', 'election_compound',... .. py:attribute:: type .. py:property:: categories :type: tuple[str, Ellipsis] .. py:class:: Screen Bases: :py:obj:`onegov.core.orm.Base`, :py:obj:`onegov.core.orm.mixins.ContentMixin`, :py:obj:`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). .. py:attribute:: __tablename__ :value: 'election_day_screens' .. py:attribute:: id :type: sqlalchemy.Column[int] .. py:attribute:: number :type: sqlalchemy.Column[int] .. py:attribute:: vote_id :type: sqlalchemy.Column[str | None] .. py:attribute:: vote :type: sqlalchemy.orm.relationship[onegov.election_day.models.vote.Vote | None] .. py:attribute:: election_id :type: sqlalchemy.Column[str | None] .. py:attribute:: election :type: sqlalchemy.orm.relationship[onegov.election_day.models.election.Election | None] .. py:attribute:: election_compound_id :type: sqlalchemy.Column[str | None] .. py:attribute:: election_compound :type: sqlalchemy.orm.relationship[onegov.election_day.models.election_compound.ElectionCompound | None] .. py:attribute:: domain :type: sqlalchemy.Column[str | None] .. py:attribute:: domain_segment :type: sqlalchemy.Column[str | None] .. py:property:: election_compound_part :type: onegov.election_day.models.election_compound.ElectionCompoundPart | None .. py:attribute:: description :type: sqlalchemy.Column[str | None] .. py:attribute:: type :type: sqlalchemy.Column[str] .. py:attribute:: structure :type: sqlalchemy.Column[str] .. py:attribute:: css :type: sqlalchemy.Column[str | None] .. py:attribute:: group :type: sqlalchemy.Column[str | None] .. py:attribute:: duration :type: sqlalchemy.Column[int | None] .. py:property:: model :type: 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 .. py:property:: screen_type :type: ScreenType .. py:property:: last_modified :type: datetime.datetime | None .. py:property:: next :type: Screen | None