ballot.models.party_result.mixins

Module Contents

Classes

PartyResultsOptionsMixin

PartyResultsCheckMixin

HistoricalPartyResultsMixin

class ballot.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 ballot.models.party_result.mixins.PartyResultsCheckMixin[source]
property has_party_results: bool[source]
property has_party_panachage_results: bool[source]
class ballot.models.party_result.mixins.HistoricalPartyResultsMixin[source]
abstract property relationships_for_historical_party_results: Query[Any][source]
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]