CandidateOffice Model

class elections.models.CandidateOffice

An office a candidate currently holds or held in the past.

candidate

Required ForeignKey( Candidate )

The Candidate that held or holds this office.

office_id

CharField(1)

Single character office type ID. Only Top-of-the-ticket races (President [P], Governor [G], US Senate [S], and US House [H]) are guaranteed to be unique on a national level. All other office types are guaranteed to be unique only within a state. There are other characters used, depending on the state and local races.

See also CandidateOffice.office

state

CharField(2)

Two character state abbreviation (e.g., IA, LA, ). See also CandidateOffice.state_name

district_number

CharField(4)

The district number for US House offices. See also CandidateOffice.district_name.

party_id

CharField(16)

Party abbreviation for the race (e.g., Dem, GOP, Lib, etc.). See also CandidateOffice.party_name

status_id

CharField(1)

The current status of the candidate in the office:

  • I Incumbant
  • C Challenger
  • Q Not seeking re-election

See also CandidateOffice.status_description

office

CharField(64)

The full name of the office.

state_name

CharField(100)

The full name of the state in which this office resides.

district_name

CharField(32)

The full name of the district for US House offices.

party_name

CharField(32)

The full name of the candidate’s party

office_description

CharField(64)

A description of the office.

status_description

CharField(64)

The full text of the status of the candidate in the office.

next_election

IntegerField

The year in which the candidate is up for re-election.

checksum

Required CharField(32)

A calculated hash to see if imported data is different from the current data.

Previous topic

DistrictResult Model

Next topic

CandidateEducation Model