contrib.postgres.FloatRangeField should be renamed DecimalRangeField
As discovered in https://code.djangoproject.com/ticket/25591#comment:6 FloatRangeField
uses numrange
as database type which is not appropriate to store doubles/floats which is what FloatField
uses.
DecimalField
on the other hand uses numeric
as datatype which makes a better abstraction resolution. I suggest we keep class FloatRangeField(DecimalRangeField)
field around with warning on __init__
during the deprecation period.
Change History
(12)
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
set to Rowan
|
Status: |
new → assigned
|
Owner: |
changed from Rowan to Stefano Chiodino
|
Patch needs improvement: |
set
|
Cc: |
Vishvajit Pathak added
|
Patch needs improvement: |
unset
|
Triage Stage: |
Accepted → Ready for checkin
|
Resolution: |
→ fixed
|
Status: |
assigned → closed
|
I'd like to help out with this ticket. Should the docs reference the fact that the field used to be called
FloatRangeField
, as well?