From b47bb4c4a74f926111bdad4a6daae14ceed6f2dd Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 5 Sep 2019 16:10:21 +0200 Subject: Refs #29598 -- Removed FloatRangeField per deprecation timeline. --- django/contrib/postgres/fields/ranges.py | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'django/contrib/postgres/fields') diff --git a/django/contrib/postgres/fields/ranges.py b/django/contrib/postgres/fields/ranges.py index a4fa20adf3..953d02ac65 100644 --- a/django/contrib/postgres/fields/ranges.py +++ b/django/contrib/postgres/fields/ranges.py @@ -11,7 +11,6 @@ from .utils import AttributeSetter __all__ = [ 'RangeField', 'IntegerRangeField', 'BigIntegerRangeField', 'DecimalRangeField', 'DateTimeRangeField', 'DateRangeField', - 'FloatRangeField', 'RangeBoundary', 'RangeOperators', ] @@ -135,22 +134,6 @@ class DecimalRangeField(RangeField): return 'numrange' -class FloatRangeField(RangeField): - system_check_deprecated_details = { - 'msg': ( - 'FloatRangeField is deprecated and will be removed in Django 3.1.' - ), - 'hint': 'Use DecimalRangeField instead.', - 'id': 'fields.W902', - } - base_field = models.FloatField - range_type = NumericRange - form_field = forms.FloatRangeField - - def db_type(self, connection): - return 'numrange' - - class DateTimeRangeField(RangeField): base_field = models.DateTimeField range_type = DateTimeTZRange -- cgit v1.3