CountyResult Model

class elections.models.CountyResult

Each CountyResult object describes the result for a particular Candidate in a particular RaceCounty.

test_live

Required CharField(1)

Single character flag indicating test (t) vs. live (l) election results data.

race_county

Required ForeignKey( RaceCounty )

Foreign key to a RaceCounty object.

ap_candidate

Required ForeignKey( Candidate )

Foreign key to a Candidate object.

party

CharField(16)

The candidate’s party abbreviation. This may be different than the CountyResult.race_county.race_type_party field.

incumbent

Required BooleanField default: False

True means the candidate an incumbent.

vote_count

Required IntegerField default: 0

Candidate’s or an initiative’s vote tally.

winner

CharField(1)

X means candidate is the winner or the initiative received a final Yes or No vote, R means candidate advances to the runoff election. An empty value indicates a non-winner

natl_order

IntegerField

Winning order of candidate in national system.

Previous topic

RaceCounty Model

Next topic

Candidate Model