Add widgets for DateField and DateTimeField.

This commit is contained in:
Dustin Bachrach 2012-11-20 08:27:52 -08:00
parent d22daa04e6
commit 7bf03bbd66

View File

@ -804,6 +804,7 @@ class EmailField(CharField):
class DateField(WritableField):
type_name = 'DateField'
widget = widgets.DateInput
default_error_messages = {
'invalid': _(u"'%s' value has an invalid date format. It must be "
@ -841,6 +842,7 @@ class DateField(WritableField):
class DateTimeField(WritableField):
type_name = 'DateTimeField'
widget = widgets.DateTimeInput
default_error_messages = {
'invalid': _(u"'%s' value has an invalid format. It must be in "