election_day.models.election.mixins =================================== .. py:module:: election_day.models.election.mixins Classes ------- .. autoapisummary:: election_day.models.election.mixins.DerivedAttributesMixin Module Contents --------------- .. py:class:: DerivedAttributesMixin A simple mixin to add commonly used functions to elections and their results. .. py:attribute:: unaccounted_ballots :type: sqlalchemy.Column[int] .. py:method:: accounted_ballots() -> int The number of accounted ballots. .. py:method:: turnout() -> float The turnout of the election.