mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
Fixed #19537 -- Made CheckboxInput._has_changed handle 'False' string
Thanks dibrovsd@gmail.com for the report.
This commit is contained in:
parent
cee40c7d79
commit
d11038acb2
2 changed files with 5 additions and 0 deletions
|
@ -240,6 +240,8 @@ class FormsWidgetTestCase(TestCase):
|
|||
self.assertTrue(w._has_changed(False, 'on'))
|
||||
self.assertFalse(w._has_changed(True, 'on'))
|
||||
self.assertTrue(w._has_changed(True, ''))
|
||||
# Initial value may have mutated to a string due to show_hidden_initial (#19537)
|
||||
self.assertTrue(w._has_changed('False', 'on'))
|
||||
|
||||
def test_select(self):
|
||||
w = Select()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue