election_day.utils.election_compound.districts ============================================== .. py:module:: election_day.utils.election_compound.districts Functions --------- .. autoapisummary:: election_day.utils.election_compound.districts.get_districts_data Module Contents --------------- .. py:function:: 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 Returns the data used by elections compounds for rendering entities and districts maps.