Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #16272 -- Removed stale format class attributes of date-related…

… widgets. Thanks, aaugustin.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16459 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8c2099ae64e37dc46adcad77405c93af76f72f70 1 parent 32ea128
@jezdez jezdez authored
Showing with 0 additions and 5 deletions.
  1. +0 −5 django/forms/widgets.py
View
5 django/forms/widgets.py
@@ -371,7 +371,6 @@ def render(self, name, value, attrs=None):
class DateInput(Input):
input_type = 'text'
- format = '%Y-%m-%d' # '2006-10-25'
def __init__(self, attrs=None, format=None):
super(DateInput, self).__init__(attrs)
@@ -403,7 +402,6 @@ def _has_changed(self, initial, data):
class DateTimeInput(Input):
input_type = 'text'
- format = '%Y-%m-%d %H:%M:%S' # '2006-10-25 14:30:59'
def __init__(self, attrs=None, format=None):
super(DateTimeInput, self).__init__(attrs)
@@ -435,7 +433,6 @@ def _has_changed(self, initial, data):
class TimeInput(Input):
input_type = 'text'
- format = '%H:%M:%S' # '14:30:59'
def __init__(self, attrs=None, format=None):
super(TimeInput, self).__init__(attrs)
@@ -828,8 +825,6 @@ class SplitDateTimeWidget(MultiWidget):
"""
A Widget that splits datetime input into two <input type="text"> boxes.
"""
- date_format = DateInput.format
- time_format = TimeInput.format
def __init__(self, attrs=None, date_format=None, time_format=None):
widgets = (DateInput(attrs=attrs, format=date_format),
Please sign in to comment.
Something went wrong with that request. Please try again.