[Fixed]-How to manually inject NullBooleanField data in form?

1👍

The widget’s display values are ‘Unknown’, ‘Yes’, ‘No’.

However, if you look at the source code, you see that the submitted values are ‘1’, ‘2’, and ‘3’ (for ‘Unknown’, ‘Yes’, ‘No’ respectively).

You should use strings for your hidden inputs.

Leave a comment