Ticket #6112: selectdate.diff
File selectdate.diff, 614 bytes (added by , 17 years ago) |
---|
-
django/newforms/extras/widgets.py
32 32 33 33 def render(self, name, value, attrs=None): 34 34 try: 35 value = datetime.date(*map(int, value.split('-')))35 #value = datetime.date(*map(int, value.split('-'))) 36 36 year_val, month_val, day_val = value.year, value.month, value.day 37 37 except (AttributeError, TypeError, ValueError): 38 38 year_val = month_val = day_val = None