summaryrefslogtreecommitdiff
path: root/tests/regressiontests
diff options
context:
space:
mode:
authorJoseph Kocherhans <joseph@jkocherhans.com>2010-02-23 14:20:35 +0000
committerJoseph Kocherhans <joseph@jkocherhans.com>2010-02-23 14:20:35 +0000
commitfd0c3656907f06d860ed7bb07daa1ae2c5bf9e11 (patch)
treeb7b809bc7eed841421f45064319add0bc02a010d /tests/regressiontests
parentcda48e9f0ba20ef993379001a0f94a479fbf23cb (diff)
[1.1.X] Fixed #11860. Changed NullBooleanSelect's _has_changed method to repect differences between None and False. Backport of [12523] from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12524 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests')
-rw-r--r--tests/regressiontests/forms/widgets.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/regressiontests/forms/widgets.py b/tests/regressiontests/forms/widgets.py
index dceb899cda..204f4d0573 100644
--- a/tests/regressiontests/forms/widgets.py
+++ b/tests/regressiontests/forms/widgets.py
@@ -530,6 +530,20 @@ Choices can be nested one level in order to create HTML optgroups:
<option value="2">Yes</option>
<option value="3" selected="selected">No</option>
</select>
+>>> w._has_changed(False, None)
+True
+>>> w._has_changed(None, False)
+True
+>>> w._has_changed(None, None)
+False
+>>> w._has_changed(False, False)
+False
+>>> w._has_changed(True, False)
+True
+>>> w._has_changed(True, None)
+True
+>>> w._has_changed(True, True)
+False
""" + \
r""" # [This concatenation is to keep the string below the jython's 32K limit].