mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	magic-removal: Fixed #1172, Datetime fields in admin interface shouldn't be cleared for validation errors.
Simply return the bad data. git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2446 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -781,7 +781,7 @@ class DateField(TextField): | ||||
|             time_tuple = time.strptime(data, '%Y-%m-%d') | ||||
|             return datetime.date(*time_tuple[0:3]) | ||||
|         except (ValueError, TypeError): | ||||
|             return None | ||||
|             return data | ||||
|     html2python = staticmethod(html2python) | ||||
|  | ||||
| class TimeField(TextField): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user