Ticket #3852: newforms_extras_widgets.diff
File newforms_extras_widgets.diff, 688 bytes (added by , 18 years ago) |
---|
-
widgets.py
33 33 value = datetime.date(*map(int, value.split('-'))) 34 34 year_val, month_val, day_val = value.year, value.month, value.day 35 35 except (AttributeError, TypeError, ValueError): 36 year_val = month_val = day_val = None 37 36 if isinstance(value,datetime.date): 37 year_val, month_val, day_val = value.year, value.month, value.day 38 else: 39 year_val = month_val = day_val = None 38 40 output = [] 39 41 40 42 month_choices = MONTHS.items()