diff options
author | Jonas Haag <jonas@lophus.org> | 2018-01-03 18:04:57 +0100 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2018-01-03 15:02:06 -0500 |
commit | 602481d0c9edb79692955e073fa481c322f1df47 (patch) | |
tree | a679c6cfba96cfec3abdcd2abf83752cc7c8c9fc /tests/admin_utils | |
parent | ea10efebfaa15fd7a9dcdd01c6d044ded0a8306a (diff) | |
download | django-602481d0c9edb79692955e073fa481c322f1df47.tar.gz |
Fixed #28986 -- Prevented boolean values in admin list display from being formatted with thousand separators.
Diffstat (limited to 'tests/admin_utils')
-rw-r--r-- | tests/admin_utils/tests.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/admin_utils/tests.py b/tests/admin_utils/tests.py index 212254f4fd..aae8b74ae2 100644 --- a/tests/admin_utils/tests.py +++ b/tests/admin_utils/tests.py @@ -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): """ |