ballot.models.election_compound.election_compound
¶
Module Contents¶
Classes¶
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded |
Attributes¶
- class ballot.models.election_compound.election_compound.ElectionCompound[source]¶
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.ContentMixin
,onegov.ballot.models.mixins.LastModifiedMixin
,onegov.ballot.models.mixins.DomainOfInfluenceMixin
,onegov.ballot.models.mixins.TitleTranslationsMixin
,onegov.ballot.models.party_result.mixins.PartyResultsOptionsMixin
,onegov.ballot.models.party_result.mixins.PartyResultsCheckMixin
,onegov.ballot.models.party_result.mixins.HistoricalPartyResultsMixin
,onegov.ballot.models.mixins.ExplanationsPdfMixin
,onegov.ballot.models.election_compound.mixins.DerivedAttributesMixin
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 polymorphic_base: type[ElectionCompound][source]¶
- property progress: tuple[int, int][source]¶
Returns a tuple with the current progress.
If the elections define a domain_supersegment (i.e. superregions), this is the number of fully counted supersegments vs. the total number of supersegments.
If no domain_supersegment is defined, this is the number of counted elections vs. the total number of elections.
- property elected_candidates: list[tuple[str, str]][source]¶
Returns the first and last names of the elected candidates.
- property relationships_for_historical_party_results: AppenderQuery[ElectionCompoundRelationship][source]¶
- party_results: relationship[list[PartyResult]][source]¶
- party_panachage_results: rel[list[PartyPanachageResult]][source]¶
- referencing_compounds: rel[AppenderQuery[ElectionCompoundRelationship]][source]¶
- domain_elections: onegov.core.orm.mixins.dict_property[onegov.ballot.types.DomainOfInfluence][source]¶