election_day.models.party_result.mixins

Classes

PartyResultsOptionsMixin

PartyResultsCheckMixin

HistoricalPartyResultsMixin

Module Contents

class election_day.models.party_result.mixins.PartyResultsOptionsMixin[source]
voters_counts: onegov.core.orm.mixins.dict_property[bool][source]
exact_voters_counts: onegov.core.orm.mixins.dict_property[bool][source]
show_party_strengths: onegov.core.orm.mixins.dict_property[bool][source]
horizontal_party_strengths: onegov.core.orm.mixins.dict_property[bool][source]
show_party_panachage: onegov.core.orm.mixins.dict_property[bool][source]
show_seat_allocation: onegov.core.orm.mixins.dict_property[bool][source]
show_list_groups: onegov.core.orm.mixins.dict_property[bool][source]
use_historical_party_results: onegov.core.orm.mixins.dict_property[bool][source]
class election_day.models.party_result.mixins.PartyResultsCheckMixin[source]
party_results: sqlalchemy.orm.relationship[list[onegov.election_day.models.PartyResult]][source]
property has_party_results: bool[source]
property has_party_panachage_results: bool[source]
class election_day.models.party_result.mixins.HistoricalPartyResultsMixin[source]
date: sqlalchemy.Column[datetime.date][source]
property relationships_for_historical_party_results: Query[Any][source]
Abstractmethod:

property historical_party_results: list[PartyResult][source]

Returns the party results while adding party results from the last legislative period, Requires that a related election or compound has been set with type “historical”.

property historical_colors: dict[str, str][source]