summaryrefslogtreecommitdiff
path: root/docs/ref/forms
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2020-01-04 11:44:11 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-01-07 11:08:40 +0100
commit188b003014dc727ca22f7fafb21cf2fa0b3472d2 (patch)
tree84b73ec73001ae076eab138f52ab93e8df47a72d /docs/ref/forms
parent0f0abc20be55d796ecfc3e7698e7ecfd9e9cdf88 (diff)
Fixed #15982 -- Added DATE_INPUT_FORMATS to forms.DateTimeField default input formats.
Diffstat (limited to 'docs/ref/forms')
-rw-r--r--docs/ref/forms/fields.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 7b26b29aee..d2a0550a47 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -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``
----------------