election_day.models.election.candidate
Attributes
Classes
A candidate. |
Module Contents
- class election_day.models.election.candidate.Candidate[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.TimestampMixin
A candidate.
- results: relationship[list_t[CandidateResult]][source]
- panachage_results: relationship[list_t[CandidatePanachageResult]][source]
- aggregate_results(attribute: str) int [source]
Gets the sum of the given attribute from the results.
- classmethod aggregate_results_expression(attribute: str) ColumnElement[int] [source]
Gets the sum of the given attribute from the results, as SQL expression.