ballot.models.election.candidate
¶
Module Contents¶
Classes¶
A candidate. |
Attributes¶
- class ballot.models.election.candidate.Candidate[source]¶
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.TimestampMixin
A candidate.
- property percentage_by_entity: dict[int, onegov.ballot.types.EntityPercentage][source]¶
Returns the percentage of votes by the entity. Includes uncounted entities and entities with no results available.
- property percentage_by_district: dict[str, onegov.ballot.types.DistrictPercentage][source]¶
Returns the percentage of votes aggregated by the distict. Includes uncounted districts and districts with no results available.
- results: relationship[list_t[CandidateResult]][source]¶
- panachage_results: relationship[list_t[CandidatePanachageResult]][source]¶