dylanfprice / hutmap

The code that powers hutmap.com
Other
3 stars 2 forks source link

Get rid of dirty hack for select fields #31

Closed dylanfprice closed 10 years ago

dylanfprice commented 10 years ago

In order to convert data coming from a django form into a javascript object, I have hardcoded a conversion which converts null to choice 1, true to choice 2, false to choice 3. This is bad.

Idea: a custom select widget which sets its value attributes to something more amenable to javascript true/false/null values.