Kaydet (Commit) 742d666d authored tarafından Tim Graham's avatar Tim Graham

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

üst a3bd8672
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)
from django.forms.widgets import SelectDateWidget # NOQA
......@@ -239,3 +239,5 @@ these features.
* ``django.db.backends.base.BaseDatabaseOperations.check_aggregate_support()``
is removed.
* The ``django.forms.extras`` package is removed.
......@@ -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'),
......
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment