Ticket #17401: widgets.py.patch
File widgets.py.patch, 743 bytes (added by , 13 years ago) |
---|
-
django/forms/extras/widgets.py
diff --git a/django/forms/extras/widgets.py b/django/forms/extras/widgets.py index 4fb4869..04c7469 100644
a b class SelectDateWidget(Widget): 70 70 v = datetime.datetime.strptime(value, input_format) 71 71 year_val, month_val, day_val = v.year, v.month, v.day 72 72 except ValueError: 73 pass 73 match = RE_DATE.match(value) 74 if match: 75 year_val, month_val, day_val = [int(v) for v in match.groups()] 74 76 else: 75 77 match = RE_DATE.match(value) 76 78 if match: