mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Merge pull request #441 from dbachrach/master
Add widgets for DateField and DateTimeField
This commit is contained in:
commit
ec437e3e0f
|
@ -835,6 +835,7 @@ class RegexField(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 "
|
||||
|
@ -872,6 +873,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 "
|
||||
|
|
Loading…
Reference in New Issue
Block a user