election_day.layouts.detail

Classes

DetailLayout

A common base layout for election and votes which caches some values

Module Contents

class election_day.layouts.detail.DetailLayout(model: Any, request: onegov.election_day.request.ElectionDayRequest)[source]

Bases: onegov.election_day.layouts.default.DefaultLayout

A common base layout for election and votes which caches some values used in the macros.

model: onegov.election_day.models.Election | onegov.election_day.models.ElectionCompound | onegov.election_day.models.ElectionCompoundPart | onegov.election_day.models.Vote[source]
request: onegov.election_day.request.ElectionDayRequest[source]
property has_results: bool[source]
property completed: bool[source]
property last_result_change: datetime.datetime | None[source]
property last_modified: datetime.datetime | None[source]
property explanations_pdf: onegov.file.File | None[source]
property show_map: bool[source]