candidate_selection¶
CandidateSelection extends ballot_selection_base and represents a ballot selection for a candidate contest.
Tag |
Data Type |
Required? |
Repeats? |
Description |
Error Handling |
|---|---|---|---|---|---|
candidate_ids |
|
Optional |
Single |
References a set of candidate elements. The number of candidates that can be references is unbounded in cases where the ballot selection is for a ticket (e.g. “President/Vice President”, “Governor/Lt Governor”). |
|
endorsement_party_ids |
|
Optional |
Single |
References a set of party elements, which signifies one or more endorsing parties for the candidate(s). |
|
is_write_in |
|
Optional |
Single |
Signifies if the particular ballot selection allows for write-in candidates. If true, one or more write-in candidates are allowed for this contest. |
1 id,sequence_order,candidate_ids,endorsement_party_ids,is_write_in
2 cs001,3,can004,par01,false
3 cs002,2,can001 can002,par03 par02,false
4 cs003,1,can003,par02 par03,true
ballot_selection_base¶
A base model for all ballot selection types: ballot_measure_selection, candidate_selection, and party_selection.
Tag |
Data Type |
Required? |
Repeats? |
Description |
Error Handling |
|---|---|---|---|---|---|
sequence_order |
|
Optional |
Single |
The order in which a selection can be listed on the ballot or in results. This is the default ordering, and can be overridden by OrderedBallotSlectionIds in ordered_contest. |