diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py
index c48ffa6..ca46299 100644
a
|
b
|
|
1 | 1 | from functools import update_wrapper, partial |
2 | 2 | import warnings |
3 | 3 | |
| 4 | import dateutil.parser |
| 5 | |
4 | 6 | from django import forms |
5 | 7 | from django.conf import settings |
6 | 8 | from django.forms.formsets import all_valid |
… |
… |
class ModelAdmin(BaseModelAdmin):
|
1055 | 1057 | continue |
1056 | 1058 | if isinstance(f, models.ManyToManyField): |
1057 | 1059 | initial[k] = initial[k].split(",") |
| 1060 | elif isinstance(f, models.DateTimeField): |
| 1061 | initial[k] = dateutil.parser.parse(initial[k]) |
1058 | 1062 | form = ModelForm(initial=initial) |
1059 | 1063 | prefixes = {} |
1060 | 1064 | for FormSet, inline in zip(self.get_formsets(request), inline_instances): |