From e9c7f118a7ab19a5441f2dceeb1765138d44daf7 Mon Sep 17 00:00:00 2001 From: Tom Date: Sat, 20 May 2017 22:05:48 +0100 Subject: [PATCH] Fixed #28227 -- Allowed importing BaseRangeField/RangeWidget from contrib.postgres.forms. --- django/contrib/postgres/forms/ranges.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/django/contrib/postgres/forms/ranges.py b/django/contrib/postgres/forms/ranges.py index d966a6e1db8..5f2b2434a3b 100644 --- a/django/contrib/postgres/forms/ranges.py +++ b/django/contrib/postgres/forms/ranges.py @@ -5,7 +5,10 @@ from django.core import exceptions from django.forms.widgets import MultiWidget from django.utils.translation import gettext_lazy as _ -__all__ = ['IntegerRangeField', 'FloatRangeField', 'DateTimeRangeField', 'DateRangeField'] +__all__ = [ + 'BaseRangeField', 'IntegerRangeField', 'FloatRangeField', + 'DateTimeRangeField', 'DateRangeField', 'RangeWidget', +] class BaseRangeField(forms.MultiValueField):