Refs #24219 -- Removed django.forms.extras per deprecation timeline.

This commit is contained in:
Tim Graham 2016-11-07 16:28:13 -05:00
parent a3bd8672d8
commit 742d666da5
5 changed files with 2 additions and 20 deletions

View File

@ -1,12 +0,0 @@
import warnings
from django.forms.widgets import SelectDateWidget
from django.utils.deprecation import RemovedInDjango20Warning
__all__ = ['SelectDateWidget']
warnings.warn(
"django.forms.extras is deprecated. You can find "
"SelectDateWidget in django.forms.widgets instead.",
RemovedInDjango20Warning, stacklevel=2)

View File

@ -1 +0,0 @@
from django.forms.widgets import SelectDateWidget # NOQA

View File

@ -239,3 +239,5 @@ these features.
* ``django.db.backends.base.BaseDatabaseOperations.check_aggregate_support()``
is removed.
* The ``django.forms.extras`` package is removed.

View File

@ -79,8 +79,6 @@ class FilePathFieldTest(SimpleTestCase):
expected = [
('/django/forms/__init__.py', '__init__.py'),
('/django/forms/boundfield.py', 'boundfield.py'),
('/django/forms/extras/__init__.py', 'extras/__init__.py'),
('/django/forms/extras/widgets.py', 'extras/widgets.py'),
('/django/forms/fields.py', 'fields.py'),
('/django/forms/forms.py', 'forms.py'),
('/django/forms/formsets.py', 'formsets.py'),

View File

@ -173,11 +173,6 @@ def setup(verbosity, test_labels, parallel):
'The GeoManager class is deprecated.',
RemovedInDjango20Warning
)
warnings.filterwarnings(
'ignore',
'django.forms.extras is deprecated.',
RemovedInDjango20Warning
)
# Load all the ALWAYS_INSTALLED_APPS.
django.setup()