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
This commit is contained in:
Jannis Leidel 2011-06-26 16:52:07 +00:00
parent 32ea1285ab
commit 8c2099ae64
1 changed files with 0 additions and 5 deletions

View File

@ -371,7 +371,6 @@ class Textarea(Widget):
class DateInput(Input): class DateInput(Input):
input_type = 'text' input_type = 'text'
format = '%Y-%m-%d' # '2006-10-25'
def __init__(self, attrs=None, format=None): def __init__(self, attrs=None, format=None):
super(DateInput, self).__init__(attrs) super(DateInput, self).__init__(attrs)
@ -403,7 +402,6 @@ class DateInput(Input):
class DateTimeInput(Input): class DateTimeInput(Input):
input_type = 'text' input_type = 'text'
format = '%Y-%m-%d %H:%M:%S' # '2006-10-25 14:30:59'
def __init__(self, attrs=None, format=None): def __init__(self, attrs=None, format=None):
super(DateTimeInput, self).__init__(attrs) super(DateTimeInput, self).__init__(attrs)
@ -435,7 +433,6 @@ class DateTimeInput(Input):
class TimeInput(Input): class TimeInput(Input):
input_type = 'text' input_type = 'text'
format = '%H:%M:%S' # '14:30:59'
def __init__(self, attrs=None, format=None): def __init__(self, attrs=None, format=None):
super(TimeInput, self).__init__(attrs) super(TimeInput, self).__init__(attrs)
@ -828,8 +825,6 @@ class SplitDateTimeWidget(MultiWidget):
""" """
A Widget that splits datetime input into two <input type="text"> boxes. 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): def __init__(self, attrs=None, date_format=None, time_format=None):
widgets = (DateInput(attrs=attrs, format=date_format), widgets = (DateInput(attrs=attrs, format=date_format),