DateField and TimeField rendered as textfield in Django

18 views
Skip to first unread message

Vishal Pandey

unread,
Dec 4, 2021, 3:46:06 PM12/4/21
to Django users
Hi everyone,
Whenever we use DateField and TimeField, django renders its html input field type as text.
I know it could be changed by customising the attributes in form class, but why is not by default.
I am also aware of the fact that date and time are supported by almost all browsers but not datetime-local.
Is it designed so?
If not, can I work upon this and make a PR in django's repository. ?

Thanks and Regards,
Vishal Pandey
Reply all
Reply to author
Forward
0 new messages