Django 1.6, Python 2.7.5+, PostgreSQL 9.1, Linux.
I have several decimal fields defined in the model as follows:
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)
Through the admin interface, when I enter 0 (zero) and save the object, I get 0E-10 as a value.
So why doesn't it just store and display zero?
The documentation does not indicate whether the maximum number is forced or not.
Is this mapping because 10 places are required ? If so, then using the default TextInput form widget, it seems to me that it should just expand to that size, or at least scroll to that size.
In PostgreSQL, it is stored as 0.0000000000
source share