#28164 closed Cleanup/optimization (fixed)

Properly convert floats in DecimalField.to_python

Reported by: Claude Paroz Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Referring to this discussion, I think a first step would be to properly convert float values in DecimalField.to_python. I'm aware that a further step will be custom contexts (#26459).

Change History (5)

comment:1 Changed 15 months ago by Claude Paroz

Has patch: set

comment:2 Changed 15 months ago by Tim Graham

Patch needs improvement: set
Triage Stage: UnreviewedAccepted

comment:3 Changed 15 months ago by Claude Paroz

Patch needs improvement: unset

comment:4 Changed 15 months ago by Tim Graham

Triage Stage: AcceptedReady for checkin

comment:5 Changed 15 months ago by Claude Paroz <claude@…>

Resolution: fixed
Status: newclosed

In a87189fc:

Fixed #28164 -- Improved float conversions in DecimalField.to_python

Thanks Tim Graham and Adam Johnson for the reviews.

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