diff -r 35aeedea954d django/utils/formats.py
a
|
b
|
|
114 | 114 | If use_l10n is provided and is not None, that will force the value to |
115 | 115 | be localized (or not), overriding the value of settings.USE_L10N. |
116 | 116 | """ |
117 | | if isinstance(value, (decimal.Decimal, float, int, long)): |
| 117 | if isinstance(value, (decimal.Decimal, float, int, long)) and not isinstance(value, bool): |
118 | 118 | return number_format(value, use_l10n=use_l10n) |
119 | 119 | elif isinstance(value, datetime.datetime): |
120 | 120 | return date_format(value, 'DATETIME_FORMAT', use_l10n=use_l10n) |