ballot.models.election.proporz_election

Module Contents

Classes

VotesByEntityRow

ProporzElection

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

class ballot.models.election.proporz_election.VotesByEntityRow[source]

Bases: NamedTuple

election_id: str[source]
entity_id: int[source]
counted: bool[source]
votes: int[source]
class ballot.models.election.proporz_election.ProporzElection[source]

Bases: onegov.ballot.models.election.election.Election, onegov.ballot.models.party_result.mixins.PartyResultsCheckMixin, onegov.ballot.models.party_result.mixins.HistoricalPartyResultsMixin

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).

property votes_by_entity: Query[VotesByEntityRow][source]
property votes_by_district: Query[VotesByDistrictRow][source]
property polymorphic_base: type[onegov.ballot.models.election.election.Election][source]
property has_lists_panachage_data: bool[source]

Checks if there are lists panachage data available.

property has_candidate_panachage_data: bool[source]

Checks if there are candidate panachage data available.

property relationships_for_historical_party_results: AppenderQuery[ElectionRelationship][source]
__mapper_args__[source]
list_connections: relationship[list[ListConnection]][source]
lists: relationship[list[List]][source]
party_results: relationship[list[PartyResult]][source]
party_panachage_results: relationship[list[PartyPanachageResult]][source]
party_panachage_results[source]
clear_results(clear_all: bool = False) None[source]

Clears all the results.