If we change the input_type in each of the classes to their HTML5
specified equivalent, forms will be better.
{{{
...
class DateInput(TextInput):
input_type = "date"
...
...
class DateTimeInput(TextInput):
input_type = "datetime"
...
...
class TimeInput(TextInput):
input_type = "time"
...
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22538>
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
--
Ticket URL: <https://code.djangoproject.com/ticket/22538#comment:1>
Comment (by W. Trevor King):
For folks finding this (old) issue and wondering which issue this is a
duplicate of, I'm guessing it's #16630 based on comment:2:ticket:21470
closing a similar request for native type="date", etc. There's also some
related (and slightly more recent) discussion in #11385.
And since
[https://github.com/django/django/commit/f1bdfbd24bcc76d21c4bf7442959bdf630ac4dec
f1bdfbd2 (v1.5a)], you've been able to explicitly set `type` via `attrs`,
so folks who want a specific input type can make that happen.
--
Ticket URL: <https://code.djangoproject.com/ticket/22538#comment:2>
* cc: W. Trevor King (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/22538#comment:3>