When the select element renders the first option is:
<option value="None" selected="selected">No. of doors</option>
This is different to Django's native forms which render the first option as:
<option value="" selected="selected">No. of doors</option>
The value returned by the floppyforms select list is the unicode string "None". The value returned by Django's native select list widget is None type.
This difference is significant and has produced a number of bugs in my project. I have fixed it by overriding the select widget template and checking for the string "None", but the None type is apparently being coerced into a string by the floppyforms select widget.
I have floppyforms ChoiceField rendering with a Select widget. The choices include a null value:
When the select element renders the first option is:
<option value="None" selected="selected">No. of doors</option>
This is different to Django's native forms which render the first option as:
<option value="" selected="selected">No. of doors</option>
The value returned by the floppyforms select list is the unicode string "None". The value returned by Django's native select list widget is None type.
This difference is significant and has produced a number of bugs in my project. I have fixed it by overriding the select widget template and checking for the string "None", but the None type is apparently being coerced into a string by the floppyforms select widget.
Is this behaviour intentional?