election_day.models.election.list
Classes
A list. |
Module Contents
- class election_day.models.election.list.List[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.TimestampMixin
A list.
- election: relationship[ProporzElection][source]
- connection: relationship[ListConnection][source]
- results: relationship[list[ListResult]][source]
- panachage_results: relationship[list[ListPanachageResult]][source]
- panachage_results_lost: relationship[list[ListPanachageResult]][source]
- candidate_panachage_results: relationship[list[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.