Fixed #29598 -- Deprecated FloatRangeField in favor of DecimalRangeField.

This commit is contained in:
Stefano Chiodino 2018-10-03 00:17:23 +01:00 committed by Tim Graham
parent bc7e288ca9
commit 6de7f9ec60
13 changed files with 126 additions and 42 deletions

View file

@ -193,6 +193,17 @@ not greater than the upper bound. All of these fields use
:class:`~django.contrib.postgres.fields.IntegerRangeField` and
:class:`~django.contrib.postgres.fields.BigIntegerRangeField`.
``DecimalRangeField``
~~~~~~~~~~~~~~~~~~~~~
.. class:: DecimalRangeField
.. versionadded:: 2.2
Based on :class:`~django.forms.DecimalField` and translates its input into
:class:`~psycopg2:psycopg2.extras.NumericRange`. Default for
:class:`~django.contrib.postgres.fields.DecimalRangeField`.
``FloatRangeField``
~~~~~~~~~~~~~~~~~~~
@ -202,6 +213,10 @@ not greater than the upper bound. All of these fields use
:class:`~psycopg2:psycopg2.extras.NumericRange`. Default for
:class:`~django.contrib.postgres.fields.FloatRangeField`.
.. deprecated:: 2.2
Use :class:`DecimalRangeField` instead.
``DateTimeRangeField``
~~~~~~~~~~~~~~~~~~~~~~