Opened 8 years ago

Closed 8 years ago

#9942 closed (fixed)

Add a to_python method for float fields

Reported by: david Owned by: david
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: UI/UX:


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 8 years ago.
Patch against r9692

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by david

Patch against r9692

comment:1 Changed 8 years ago by david

  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Status changed from new to assigned

comment:2 Changed 8 years ago by russellm

  • Resolution set to fixed
  • Status changed from assigned to closed

(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