Skip to content
Browse files

magic-removal: Fixed #1172, Datetime fields in admin interface should…

…n't be cleared for validation errors.

Simply return the bad data.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 2f27df2 commit 53ac6f9782802e2438b4f58acbcf3da0924ff53f Duncan Foster committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/forms/
2 django/forms/
@@ -781,7 +781,7 @@ def html2python(data):
time_tuple = time.strptime(data, '%Y-%m-%d')
except (ValueError, TypeError):
- return None
+ return data
html2python = staticmethod(html2python)
class TimeField(TextField):

0 comments on commit 53ac6f9

Please sign in to comment.
Something went wrong with that request. Please try again.