﻿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
22324	form.has_change() is always True if BooleanField(default=True)	osamak	nobody	"In any ModelForm, if the model has a BooleanField with True as the default value, any instance of the ModelForm will automatically have form.has_changed() set to True.  This doesn't apply if the default value is False.

Take this model example:


{{{
class Test(models.Model):
    test_field = models.BooleanField(default=True)

}}}

And take this ModelForm example:

{{{
class TestForm(ModelForm):
    class Meta:
        model = Test
        fields = ['test_field']
}}}

In the previous example:
{{{
>> form = TestForm()
>> form.has_changed()
True
}}}
"	Uncategorized	closed	Forms	1.6	Normal	invalid			Unreviewed	0	0	0	0	0	0
