Datefield and timefield rendered as textfield

72 views
Skip to first unread message

Vishal Pandey

unread,
Dec 4, 2021, 3:45:59 PM12/4/21
to Django developers (Contributions to Django itself)
Hi everyone,
I wanted to know why Django renders datefield and timefield as input type = "text"  field in html.

I am aware of the fact that almost all browsers are compatible with input type date and time. So rendering it as a text field doesn't make any sense to me, but  I also understand that the django developers can't ignore such a silly thing.

is this a designed so?
If not, I would like to create a ticket for this and solve this.

Thanks and regards
Vishal Pandey


Hannes Ljungberg

unread,
Dec 4, 2021, 3:59:51 PM12/4/21
to Django developers (Contributions to Django itself)
Hi Vishal,

See this discussion for more details on the topic - https://groups.google.com/g/django-developers/c/wp-pnzcB25o/m/D5gEOzPIAQAJ

Best,
Hannes

Reply all
Reply to author
Forward
0 new messages