mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #26173 -- Prevented localize_input() from formatting booleans as numbers.
This commit is contained in:
committed by
Tim Graham
parent
bb51dc902d
commit
f7a9872b91
@@ -1117,6 +1117,10 @@ class FormattingTests(SimpleTestCase):
|
||||
form6.as_ul()
|
||||
)
|
||||
|
||||
def test_localized_input_func(self):
|
||||
with self.settings(USE_THOUSAND_SEPARATOR=True):
|
||||
self.assertEqual(localize_input(True), 'True')
|
||||
|
||||
def test_sanitize_separators(self):
|
||||
"""
|
||||
Tests django.utils.formats.sanitize_separators.
|
||||
|
||||
Reference in New Issue
Block a user