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

Localize decimal fields #146

Merged
merged 7 commits into from
May 1, 2012
Merged

Conversation

jrief
Copy link
Member

@jrief jrief commented Feb 27, 2012

Unfortunately in the build-in Django admin views, there is no easy way to localize model fields of type DecimalField.
This mixin can help authors of admin views to localize fields of type DecimalField with minimum effort. It is specially useful for customers in countries, where decimal numbers are separated using a comma instead of a dot.
See also https://code.djangoproject.com/ticket/13546

@Lacrymology
Copy link

+1, This is important, and I see no issues with this patch.

Just to make a point: most my clients are Canadian, and French and English have different numerical localizations

@chrisglass
Copy link
Contributor

Ok, this looks sensible.

chrisglass added a commit that referenced this pull request May 1, 2012
@chrisglass chrisglass merged commit fb94499 into awesto:master May 1, 2012
@jrief jrief deleted the localize-decimal-fields branch February 25, 2013 15:40
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

Successfully merging this pull request may close these issues.

3 participants