#25573: Add simple way to use SplitDateTimeField on ModelForms
--------------------------------------+--------------------
     Reporter:  seddonym              |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  Forms                 |    Version:  1.9a1
     Severity:  Normal                |   Keywords:
 Triage Stage:  Unreviewed            |  Has patch:  0
Easy pickings:  0                     |      UI/UX:  0
--------------------------------------+--------------------
 If you specify a `SplitDateTimeWidget` as the custom widget for a
 `DateTimeField` on a `ModelForm`, you receive this deprecation warning:

 {{{
 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.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.c1c0a0c04765d217610d157a99a53677%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to