Author: jezdez
Date: 2011-06-26 09:52:07 -0700 (Sun, 26 Jun 2011)
New Revision: 16459

Modified:
   django/trunk/django/forms/widgets.py
Log:
Fixed #16272 -- Removed stale format class attributes of date-related widgets. 
Thanks, aaugustin.

Modified: django/trunk/django/forms/widgets.py
===================================================================
--- django/trunk/django/forms/widgets.py        2011-06-26 16:52:01 UTC (rev 
16458)
+++ django/trunk/django/forms/widgets.py        2011-06-26 16:52:07 UTC (rev 
16459)
@@ -371,7 +371,6 @@
 
 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 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 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 @@
     """
     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),

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to