newsdev / elex-admin

A CRUD admin for editing AP election results data, including names and race calls.
6 stars 2 forks source link

NYT delegates being cast to 0 instead of NULL from race admin? #27

Closed giratikanon closed 8 years ago

giratikanon commented 8 years ago

When I delete a 0 from the delegate count for a candidate in a race, I get a 200 from the server. But when I refresh the page, the value is 0 again, instead of blank.

jeremyjbowers commented 8 years ago

Hmm. I can fix this -- I bet an integer field defaults to 0 instead of null or something. Will just coerce in the app.