diff --git a/django/contrib/admin/widgets.py b/django/contrib/admin/widgets.py
index 4ae8889..be4a937 100644
a
|
b
|
class FilteredSelectMultiple(forms.SelectMultiple):
|
36 | 36 | (name, self.verbose_name.replace('"', '\\"'), int(self.is_stacked), settings.ADMIN_MEDIA_PREFIX)) |
37 | 37 | return mark_safe(u''.join(output)) |
38 | 38 | |
39 | | class AdminDateWidget(forms.TextInput): |
| 39 | class AdminDateWidget(forms.DateTimeInput): |
| 40 | format = '%Y-%m-%d' |
| 41 | |
40 | 42 | class Media: |
41 | 43 | js = (settings.ADMIN_MEDIA_PREFIX + "js/calendar.js", |
42 | 44 | settings.ADMIN_MEDIA_PREFIX + "js/admin/DateTimeShortcuts.js") |
… |
… |
class AdminDateWidget(forms.TextInput):
|
44 | 46 | def __init__(self, attrs={}): |
45 | 47 | super(AdminDateWidget, self).__init__(attrs={'class': 'vDateField', 'size': '10'}) |
46 | 48 | |
47 | | class AdminTimeWidget(forms.TextInput): |
| 49 | class AdminTimeWidget(forms.DateTimeInput): |
| 50 | format = '%H:%M:%S' |
| 51 | |
48 | 52 | class Media: |
49 | 53 | js = (settings.ADMIN_MEDIA_PREFIX + "js/calendar.js", |
50 | 54 | settings.ADMIN_MEDIA_PREFIX + "js/admin/DateTimeShortcuts.js") |