1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #9942 -- Added a to_python handler for FloatField to ensure correct typing of deserialized data before saving. Underlying problem is analogous to #8298, fixed in [8515]. Thanks to David Larlet <larlet@gmail.com> for the report and fix.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9695 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee
2009-01-03 04:43:58 +00:00
parent 3cd1e80ae4
commit 096a9ecc5c
5 changed files with 19 additions and 4 deletions

View File

@@ -4,5 +4,6 @@
<field type="CharField" name="name">Emu</field>
<field type="CharField" name="latin_name">Dromaius novaehollandiae</field>
<field type="IntegerField" name="count">42</field>
<field type="FloatField" name="weight">1.2</field>
</object>
</django-objects>

View File

@@ -5,7 +5,8 @@
"fields": {
"name": "Lion",
"latin_name": "Panthera leo",
"count": 3
"count": 3,
"weight": 1.2
}
}
]