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:
@@ -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>
|
||||
@@ -5,7 +5,8 @@
|
||||
"fields": {
|
||||
"name": "Lion",
|
||||
"latin_name": "Panthera leo",
|
||||
"count": 3
|
||||
"count": 3,
|
||||
"weight": 1.2
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user