﻿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
27433	ModelForm with BooleanField can not save False/unchecked	Christian Pedersen	Ingo Klöcker	"My model has this field
{{{
starred_only = models.BooleanField(default=False)
}}}

Overriden in the ModelForm
{{{
starred_only = forms.BooleanField(required=False)
}}}

Django 1.10 stopped saving the unchecked (False) value. 1.10.1 started doing it again, and from 1.10.2 it stopped.

This fixed it: https://github.com/django/django/pull/7068
And this broke it: https://github.com/django/django/pull/7217

I tried creating a custom widget:

{{{
class WorkingCheckboxInput(CheckboxInput):
    def value_omitted_from_data(self, data, files, name):
        return True
}}}

but value_omitted_from_data is never called.

The docs and/or minor release changelogs doesn't really document how to get the previous default behavior back."	Bug	closed	Forms	1.10	Normal	invalid			Unreviewed	0	0	0	0	0	0
