mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #28986 -- Prevented boolean values in admin list display from being formatted with thousand separators.
This commit is contained in:
@@ -210,6 +210,8 @@ class UtilsTests(SimpleTestCase):
|
||||
display_for_value(False, '', boolean=True),
|
||||
'<img src="/static/admin/img/icon-no.svg" alt="False" />'
|
||||
)
|
||||
self.assertEqual(display_for_value(True, ''), 'True')
|
||||
self.assertEqual(display_for_value(False, ''), 'False')
|
||||
|
||||
def test_label_for_field(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user