#23320: FloatField not converting values to float()
-------------------------------------+-------------------------------------
Reporter: pjrobertson | Owner: nobody
Type: | Status: closed
Cleanup/optimization | Version: 1.7-rc-2
Component: Database layer | Resolution: invalid
(models, ORM) | Triage Stage:
Severity: Normal | Unreviewed
Keywords: | Needs documentation: 0
Has patch: 0 | Patch needs improvement: 0
Needs tests: 0 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------
Changes (by mjtamlyn):
* status: new => closed
* resolution: => invalid
Comment:
This is consistent with other fields and is by design for performance
reasons.
In essence you are doing the following:
{{{#!python
>>> f = Fl()
>>> f.float = ' 0.6 '
>>> f.float
' 0.6 '
}}}
I don't find this behaviour particularly surprising, it would be more
surprising if implicit casting was taking place.
--
Ticket URL: <https://code.djangoproject.com/ticket/23320#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" 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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.b8bdfdefc5307701d9c045552c1468e7%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.