Race pages

class theshow.views.races.FederalExecutiveRacePage(**kwargs)

Preview URL: /election-results/race/{YEAR}/{OFFICE}/

model

alias of Race

class theshow.views.races.FederalExecutiveRacePageExport(**kwargs)

Publish URL: /election-results/{YEAR}/{OFFICE}/

class theshow.views.races.StateExecutiveRacePage(**kwargs)

Preview URL: /election-results/race/{YEAR}/{STATE}/{OFFICE}/{ELECTION DAY}/

static build_context(election_datestring, state_slug, office_slug, context={})

Build context through a staticmethod so that we can call it without an HTTPRequest when baking to AWS.

model

alias of Race

class theshow.views.races.StateExecutiveRacePageExport(**kwargs)

Publish URL: /election-results/{YEAR}/{STATE}/{OFFICE}/