Re: Trailing zeros in DecimalField

121 views
Skip to first unread message

Derek

unread,
May 20, 2013, 4:23:44 AM5/20/13
to django...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages