ballot.models.election.mixins

Module Contents

Classes

DerivedAttributesMixin

A simple mixin to add commonly used functions to elections and their

class ballot.models.election.mixins.DerivedAttributesMixin[source]

A simple mixin to add commonly used functions to elections and their results.

unaccounted_ballots() int[source]

The number of unaccounted ballots.

accounted_ballots() int[source]

The number of accounted ballots.

turnout() float[source]

The turnout of the election.

turnout() float[source]

The turnout of the election.