Ticket #16421: timefield.diff
File timefield.diff, 584 bytes (added by , 13 years ago) |
---|
-
django/db/models/fields/__init__.py
1160 1160 if val is None: 1161 1161 data = '' 1162 1162 else: 1163 data = val.strftime("%H:%M:%S") 1163 try: 1164 data = val.strftime("%H:%M:%S") 1165 except AttributeError: 1166 data = datetime.datetime.strptime(val, "%H:%M:%S") 1164 1167 return data 1165 1168 1166 1169 def formfield(self, **kwargs):