openelections/core — pull request #194 by ghing (2014-09-01 01:44:10+00:00)
Title: Add ocd_id field to RawResult

Add the ocd_id field to the RawResult model, populate it in state loaders and include it as the ``division`` field in baked raw results.

@dwillis, this could use some review in state state loaders which I didn't write. Also, Ohio's is the squirliest as that state's loader seemed only partially implemented and seemed to contain a lot of copy and pasted code from Maryland's loader.

Also, in keeping with the distinction between load and transform, there's no standardization for the OCD IDs here. Depending on how a jurisdiction is named in the source file, there may be multiple OCD IDs for the same geography. I think this is okay as the big motivation for including this is to reflect the relationship between precincts and their parent geographies, for precinct-level results.