1
0
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:
Jonas Haag
2018-01-03 18:04:57 +01:00
committed by Tim Graham
parent ea10efebfa
commit 602481d0c9
2 changed files with 4 additions and 0 deletions

View File

@@ -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):
"""