id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 20723 model_to_dict requires True, False, or '' instead of 0, 1, or '' when NullBooleanField helen.mayhew@… nobody "I have a model with {{{ addr_to_photographer = models.NullBooleanField(blank=True, null=True) }}} and I have a custom save function in my model that uses model_to_dict. Previously, the field was a regular models.BooleanField(), and in the json for my POST, I had to send 0, 1, or nothing to fill the value. Once I changed the field to be models.NullBooleanField, 0, 1, and nothing ALL stored as null. I had to change my POST json to send True, False, or nothing to get it to work. I just think it would be helpful to note this in the documentation about model_to_dict and/or NullBoolean. Thanks." Cleanup/optimization closed Documentation 1.5 Normal needsinfo Unreviewed 0 0 0 0 0 0