Opened 15 years ago

Closed 15 years ago

#9942 closed (fixed)

Add a to_python method for float fields

Reported by: David Larlet Owned by: David Larlet
Component: Core (Serialization) Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

This ensures that the data from deserialized instances is of correct type prior to saving.

Exactly the same as #8298, I'll try to attach a patch quickly based on [8515].

Attachments (1)

patch_django_9942.20090102.diff (3.7 KB ) - added by David Larlet 15 years ago.
Patch against r9692

Download all attachments as: .zip

Change History (3)

by David Larlet, 15 years ago

Patch against r9692

comment:1 by David Larlet, 15 years ago

Has patch: set
Status: newassigned

comment:2 by Russell Keith-Magee, 15 years ago

Resolution: fixed
Status: assignedclosed

(In [9695]) 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@…> for the report and fix.

Note: See TracTickets for help on using tickets.
Back to Top