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.
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.