mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Refs #26533 -- Removed support for Widget._format_value() per deprecation timeline.
This commit is contained in:
@@ -15,9 +15,6 @@ from django.forms.utils import to_current_timezone
|
||||
from django.templatetags.static import static
|
||||
from django.utils import datetime_safe, formats, six
|
||||
from django.utils.dates import MONTHS
|
||||
from django.utils.deprecation import (
|
||||
RemovedInDjango20Warning, RenameMethodsBase,
|
||||
)
|
||||
from django.utils.encoding import (
|
||||
force_str, force_text, python_2_unicode_compatible,
|
||||
)
|
||||
@@ -160,13 +157,7 @@ class MediaDefiningClass(type):
|
||||
return new_class
|
||||
|
||||
|
||||
class RenameWidgetMethods(MediaDefiningClass, RenameMethodsBase):
|
||||
renamed_methods = (
|
||||
('_format_value', 'format_value', RemovedInDjango20Warning),
|
||||
)
|
||||
|
||||
|
||||
class Widget(six.with_metaclass(RenameWidgetMethods)):
|
||||
class Widget(six.with_metaclass(MediaDefiningClass)):
|
||||
needs_multipart_form = False # Determines does this widget need multipart form
|
||||
is_localized = False
|
||||
is_required = False
|
||||
|
||||
Reference in New Issue
Block a user