Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jannis Leidel authored June 26, 2011

Showing 1 changed file with 0 additions and 5 deletions. Show diff stats Hide diff stats

  1. 5  django/forms/widgets.py
5  django/forms/widgets.py
@@ -371,7 +371,6 @@ def render(self, name, value, attrs=None):
371 371
 
372 372
 class DateInput(Input):
373 373
     input_type = 'text'
374  
-    format = '%Y-%m-%d'     # '2006-10-25'
375 374
 
376 375
     def __init__(self, attrs=None, format=None):
377 376
         super(DateInput, self).__init__(attrs)
@@ -403,7 +402,6 @@ def _has_changed(self, initial, data):
403 402
 
404 403
 class DateTimeInput(Input):
405 404
     input_type = 'text'
406  
-    format = '%Y-%m-%d %H:%M:%S'     # '2006-10-25 14:30:59'
407 405
 
408 406
     def __init__(self, attrs=None, format=None):
409 407
         super(DateTimeInput, self).__init__(attrs)
@@ -435,7 +433,6 @@ def _has_changed(self, initial, data):
435 433
 
436 434
 class TimeInput(Input):
437 435
     input_type = 'text'
438  
-    format = '%H:%M:%S'     # '14:30:59'
439 436
 
440 437
     def __init__(self, attrs=None, format=None):
441 438
         super(TimeInput, self).__init__(attrs)
@@ -828,8 +825,6 @@ class SplitDateTimeWidget(MultiWidget):
828 825
     """
829 826
     A Widget that splits datetime input into two <input type="text"> boxes.
830 827
     """
831  
-    date_format = DateInput.format
832  
-    time_format = TimeInput.format
833 828
 
834 829
     def __init__(self, attrs=None, date_format=None, time_format=None):
835 830
         widgets = (DateInput(attrs=attrs, format=date_format),

0 notes on commit 8c2099a

Please sign in to comment.
Something went wrong with that request. Please try again.