I have several decimal fields defined in the model like this:
min_inclusive = models.DecimalField(_('minimum inclusive'), max_digits=19,
decimal_places=10, help_text=_("Enter the minimum (inclusive) value for
this concept."), null=True, blank=True)
Via the admin interface when I enter a 0 (zero) and save the object I
get 0E-10 as the value. I am using PostgreSQL 9.1 for persistence.
So, why doesn't it just store a zero?
The documentation doesn't specify if decimal_places is forced or if it is a
maximum number. Is this display because 10 places are 'required'? If so,
the using the default form widget, TextInput, it seems to me that is should
just expand to that size or at least scroll to that size.
In reality I need to allow the range of, positive infinity to negative
infinity. But this doesn't seem possible. Is it?
Thanks,
Tim
--
MLHIM VIP Signup: http://goo.gl/22B0U
============================================
Timothy Cook, MSc +55 21 94711995
MLHIM http://www.mlhim.org
Like Us on FB: https://www.facebook.com/mlhim2
Circle us on G+: http://goo.gl/44EV5
Google Scholar: http://goo.gl/MMZ1o
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CA%2B%3DOU3WRw0daonURtCwEDSP4tg5r%2Bjdbz5P3%2BhBoy0af-pb3sg%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.