mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #11860. Changed NullBooleanSelect's _has_changed method to repect differences between None and False. Thanks, matiasb.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12523 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -532,6 +532,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].
|
||||
|
||||
Reference in New Issue
Block a user