Re: Trailing zeros in DecimalField
Possibly related to localisation. See:
https://groups.google.com/forum/?fromgroups#!topic/django-users/evJ7jg-YhdM
https://docs.djangoproject.com/en/dev/topics/i18n/formatting/
On Sunday, 19 May 2013 01:37:22 UTC+2, Pedro J. Aramburu wrote:
I've been reviewing the code of models.DecimalField and forms.DecimalField because trailing zeros after the decimal point are being removed in my forms. I didn't find anything suggesting that it's done there, instead they are handled properly according to my needs. Although the proper handling, on the django admin site forms the trailing zeros are being removed.--Does anyone knows how to "fix" it? Is this a django-admin thing or have I missed something?I would appreciate any insight.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home