Override DECIMAL_SEPARATOR in certain cases?
In my application I have LANGUAGE_CODE set to 'sv-SE', which uses
comma as decimal separator. When using a model field containing a
floating point number as argument to a Javascript function, or when
sending the number to an external site (in my case as coordinates to
get a static map from Google Maps), the model field should not be
localized.
Is there a known way to change the localization for number formating
for certain cases?
And no, the DECIMAL_SEPARATOR setting in the project settings does not
seem to be used anywhere, and the decimal fields should be localized
when showing the number to a user.
I'm using the 1.3 alpha release of Django.
Regards
/ Joachim
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home