From 8c2099ae64e37dc46adcad77405c93af76f72f70 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Sun, 26 Jun 2011 16:52:07 +0000 Subject: [PATCH] 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 --- django/forms/widgets.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 1df56d0f09..9b95c31c92 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -371,7 +371,6 @@ class Textarea(Widget): 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 @@ class DateInput(Input): 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 @@ class DateTimeInput(Input): 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 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),