Ticket #5027: widgets.diff
File widgets.diff, 592 bytes (added by , 17 years ago) |
---|
-
widgets.py
old new class SelectDateWidget(Widget): 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, str(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