Changes between Initial Version and Version 3 of Ticket #24913
- Timestamp:
- Jun 4, 2015, 6:02:27 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24913
- Property Triage Stage Unreviewed → Accepted
- Property Needs tests set
- Property Owner changed from to
- Property Status new → assigned
- Property Summary localize filter tag not work for thousand separator then USE_L10N is False → Localize filter tag doesn't work for thousand separator then USE_L10N is False
-
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