Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off USE_THOUSAND_SEPARATOR so that templating of values without filters don't magically autofilter #7355

Closed
1 task
Pomax opened this issue Sep 10, 2021 · 0 comments · Fixed by #7397
Closed
1 task

Comments

@Pomax
Copy link
Contributor

Pomax commented Sep 10, 2021

We're currently running with Django's USE_THOUSAND_SEPARATOR set to True, which automatically converts any and all numbers used in templating to a string representation with separators in it, which means you can't rely on numbers actually being numbers. Let's turn this off (which is the default) and instead make sure that any number that needs to be localised explicitly does so through the use of the intcomma filter instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants