mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #15982 -- Added DATE_INPUT_FORMATS to forms.DateTimeField default input formats.
This commit is contained in:
parent
0f0abc20be
commit
188b003014
42 changed files with 32 additions and 119 deletions
|
@ -505,16 +505,20 @@ For each field, we describe the default widget used if you don't specify
|
|||
* '2006-10-25'
|
||||
|
||||
If no ``input_formats`` argument is provided, the default input formats are
|
||||
taken from :setting:`DATETIME_INPUT_FORMATS` if :setting:`USE_L10N` is
|
||||
``False``, or from the active locale format ``DATETIME_INPUT_FORMATS`` key
|
||||
if localization is enabled. See also :doc:`format localization
|
||||
</topics/i18n/formatting>`.
|
||||
taken from :setting:`DATETIME_INPUT_FORMATS` and
|
||||
:setting:`DATE_INPUT_FORMATS` if :setting:`USE_L10N` is ``False``, or from
|
||||
the active locale format ``DATETIME_INPUT_FORMATS`` and
|
||||
``DATE_INPUT_FORMATS`` keys if localization is enabled. See also
|
||||
:doc:`format localization </topics/i18n/formatting>`.
|
||||
|
||||
.. versionchanged:: 3.1
|
||||
|
||||
Support for ISO 8601 date string parsing (including optional timezone)
|
||||
was added.
|
||||
|
||||
The fallback on ``DATE_INPUT_FORMATS`` in the default ``input_formats``
|
||||
was added.
|
||||
|
||||
``DecimalField``
|
||||
----------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue