Changes between Initial Version and Version 3 of Ticket #24913
- Timestamp:
- 06/04/15 11:02:27 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24913
-
Property
Status
changed from
new
toassigned
- Property Needs tests set
-
Property
Summary
changed from
localize filter tag not work for thousand separator then USE_L10N is False
toLocalize filter tag doesn't work for thousand separator then USE_L10N is False
- Property Owner changed from nobody to Ana Balica
-
Property
Triage Stage
changed from
Unreviewed
toAccepted
-
Property
Status
changed from
-
Ticket #24913 – Description
initial v3 1 in settings.py 1 In settings.py set 2 2 '''USE_L10N = False 3 3 USE_THOUSAND_SEPARATOR = True''' 4 4 5 it template 5 In the template do this: 6 {{{ 6 7 {% localize on %} 7 8 {{ object.price }} 8 9 {% endlocalize %} 10 }}} 9 11 or 10 {{ object.price|localize }} 12 {{{ 13 {{ object.price|localize }} 14 }}} 11 15 12 but there is no affect 16 Switching on the localization doesn't trigger the `USE_THOUSAND_SEPARATOR` setting in case it's set to True. 13 17 14 18 I think in util.formats.number_format function should be something like this 19 {{{ 15 20 if use_l10n: 16 21 force_grouping = True 22 }}} 17 23 18 24 19