Code

Opened 6 years ago

Closed 6 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:

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

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by david

Patch against r9692

comment:1 Changed 6 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 6 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.