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: sqlalchemy.orm.relationship[list_t[onegov.election_day.models.election.candidate_result.CandidateResult]][source]
- panachage_results: sqlalchemy.orm.relationship[list_t[onegov.election_day.models.CandidatePanachageResult]][source]
- aggregate_results(attribute: str) int [source]
Gets the sum of the given attribute from the results.
- classmethod aggregate_results_expression(attribute: str) sqlalchemy.sql.ColumnElement[int] [source]
Gets the sum of the given attribute from the results, as SQL expression.