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: Election | ElectionCompound | ElectionCompoundPart | Vote[source]
request: onegov.election_day.request.ElectionDayRequest[source]
property has_results: bool[source]
property completed: bool[source]
property last_result_change: datetime | None[source]
property last_modified: datetime | None[source]
property explanations_pdf: File | None[source]
property show_map: bool[source]