summaryrefslogtreecommitdiff
path: root/django/forms/extras
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms/extras')
-rw-r--r--django/forms/extras/widgets.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/django/forms/extras/widgets.py b/django/forms/extras/widgets.py
index c5ca1424c8..e939a8f665 100644
--- a/django/forms/extras/widgets.py
+++ b/django/forms/extras/widgets.py
@@ -135,11 +135,3 @@ class SelectDateWidget(Widget):
s = Select(choices=choices)
select_html = s.render(field % name, val, local_attrs)
return select_html
-
- def _has_changed(self, initial, data):
- try:
- input_format = get_format('DATE_INPUT_FORMATS')[0]
- data = datetime_safe.datetime.strptime(data, input_format).date()
- except (TypeError, ValueError):
- pass
- return super(SelectDateWidget, self)._has_changed(initial, data)