Refs #24219 -- Removed django.forms.extras per deprecation timeline.
This commit is contained in:
parent
a3bd8672d8
commit
742d666da5
|
@ -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)
|
|
|
@ -1 +0,0 @@
|
||||||
from django.forms.widgets import SelectDateWidget # NOQA
|
|
|
@ -239,3 +239,5 @@ these features.
|
||||||
|
|
||||||
* ``django.db.backends.base.BaseDatabaseOperations.check_aggregate_support()``
|
* ``django.db.backends.base.BaseDatabaseOperations.check_aggregate_support()``
|
||||||
is removed.
|
is removed.
|
||||||
|
|
||||||
|
* The ``django.forms.extras`` package is removed.
|
||||||
|
|
|
@ -79,8 +79,6 @@ class FilePathFieldTest(SimpleTestCase):
|
||||||
expected = [
|
expected = [
|
||||||
('/django/forms/__init__.py', '__init__.py'),
|
('/django/forms/__init__.py', '__init__.py'),
|
||||||
('/django/forms/boundfield.py', 'boundfield.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/fields.py', 'fields.py'),
|
||||||
('/django/forms/forms.py', 'forms.py'),
|
('/django/forms/forms.py', 'forms.py'),
|
||||||
('/django/forms/formsets.py', 'formsets.py'),
|
('/django/forms/formsets.py', 'formsets.py'),
|
||||||
|
|
|
@ -173,11 +173,6 @@ def setup(verbosity, test_labels, parallel):
|
||||||
'The GeoManager class is deprecated.',
|
'The GeoManager class is deprecated.',
|
||||||
RemovedInDjango20Warning
|
RemovedInDjango20Warning
|
||||||
)
|
)
|
||||||
warnings.filterwarnings(
|
|
||||||
'ignore',
|
|
||||||
'django.forms.extras is deprecated.',
|
|
||||||
RemovedInDjango20Warning
|
|
||||||
)
|
|
||||||
|
|
||||||
# Load all the ALWAYS_INSTALLED_APPS.
|
# Load all the ALWAYS_INSTALLED_APPS.
|
||||||
django.setup()
|
django.setup()
|
||||||
|
|
Loading…
Reference in New Issue