How to prefill a `DateTimeField` from URL in django admin?

Let's say your model is :

```
class MyModel(models.Model):
    name = models.CharField(max_length=14)
    date = models.DateTimeField()

```

Then you can have the model "Add" form prefilled with values by passing them as GET parameters to the add view like:

```
/admin/app/mymodel/add/?name=Test

```

This is a really cool feature but how do you achieve this for a DateTimeField?

I tried many possible formats without success.

**Update:**

It seems impossible to do because django admin uses a `SplitDateTimeWidget` for `DateTimeField`. But if you don't mind using a different widget and loosing the datepicker, you can use a `DateTimeInput` widget instead.

The fastest way is to add this to your `ModelAdmin` class:

```
formfield_overrides = {
    models.DateTimeField: {'widget': DateTimeInput},
}

```