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

Decimal comma separator #2897

Closed
kaiobrito opened this issue May 1, 2015 · 1 comment
Closed

Decimal comma separator #2897

kaiobrito opened this issue May 1, 2015 · 1 comment

Comments

@kaiobrito
Copy link

How can i use comma as separator in decimal fields?

In django.forms.DecimalField just need to set locale=True in attributes to work well.

@tomchristie
Copy link
Member

We don't currently support localized decimal fields, so you'd need to subclass the field and add in any further behavior by overriding get_internal_value and/or get_representation.

I'd accept a feature request for localization on field types so long as it comprehensively looked at all the various numeric localization that happens across all the Django numeric types.

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

No branches or pull requests

2 participants