{{{
RemovedInDjango19Warning: Using SplitDateTimeWidget with DateTimeField is
deprecated. Use SplitDateTimeField instead.
}}}
My understanding is that the only way to do this for a `ModelForm` based
on a model with a `DateTimeField`, is to subclass `models.DateTimeField`
like this: https://gist.github.com/nacady/8dd5cab2f749d1589f1e.
Perhaps we should provide a simpler way of using the SplitDateTimeField
with ModelForms?
--
Ticket URL: <https://code.djangoproject.com/ticket/25573>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* needs_better_patch: => 0
* resolution: => duplicate
* needs_tests: => 0
* needs_docs: => 0
Comment:
The `ModelForm.Meta.field_classes` feature added in Django 1.9 should
allow this (#24295).
--
Ticket URL: <https://code.djangoproject.com/ticket/25573#comment:1>
Comment (by seddonym):
Oh, great feature - yes, this will do the trick.
--
Ticket URL: <https://code.djangoproject.com/ticket/25573#comment:2>