mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Add warning about using native date inputs widgets that uses the type="date" attribute.
Django is not capable of formatting native date input browser widgets. For more info, see last comment of this ticket: https://code.djangoproject.com/ticket/34853
This commit is contained in:
parent
e99c7d8847
commit
50fabeafcf
@ -12,6 +12,14 @@ templates using the format specified for the current
|
|||||||
Two users accessing the same content may see dates, times and numbers formatted
|
Two users accessing the same content may see dates, times and numbers formatted
|
||||||
in different ways, depending on the formats for their current locale.
|
in different ways, depending on the formats for their current locale.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
|
||||||
|
Because of how browsers enforce their own locale on to form inputs such as dates,
|
||||||
|
Django is not capable of formatting native date inputs (inputs that use the
|
||||||
|
attribute type="date" and similar). This also means that Django does not use
|
||||||
|
native date inputs by default - as there is nothing it can do to format such
|
||||||
|
form inputs.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
To enable number formatting with thousand separators, it is necessary to
|
To enable number formatting with thousand separators, it is necessary to
|
||||||
|
Loading…
Reference in New Issue
Block a user