election_day.utils.election_compound.districts

Functions

get_districts_data(→ onegov.core.types.JSONObject_ro)

Returns the data used by elections compounds for rendering entities and

Module Contents

election_day.utils.election_compound.districts.get_districts_data(compound: onegov.election_day.models.ElectionCompound | onegov.election_day.models.ElectionCompoundPart, principal: onegov.election_day.models.Canton | onegov.election_day.models.Municipality, request: onegov.election_day.request.ElectionDayRequest | None = None) onegov.core.types.JSONObject_ro[source]

Returns the data used by elections compounds for rendering entities and districts maps.