diff options
author | Edison Wang <edisonwang03@gmail.com> | 2023-03-29 00:23:43 -0400 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-04-03 08:15:10 +0200 |
commit | 9ef2625cd51f6f84d6268322b1f8e59b99b35aac (patch) | |
tree | 99c1dbaac8256eb36fd1d9afb57ffe05523472fd | |
parent | 837e68a1bfcff497586e8f1c999647c1a268c6b1 (diff) | |
download | django-9ef2625cd51f6f84d6268322b1f8e59b99b35aac.tar.gz |
[4.2.x] Fixed #34431 -- Improved Date/DateTimeField/TimeField.input_formats docs.
Backport of cbcc1240e912cfc47cb6ea0c4fe6b4a48f36f7e2 from main
-rw-r--r-- | docs/ref/forms/fields.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 2ebed3559b..6954e3819d 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -465,7 +465,7 @@ For each field, we describe the default widget used if you don't specify .. attribute:: input_formats - A list of formats used to attempt to convert a string to a valid + An iterable of formats used to attempt to convert a string to a valid ``datetime.date`` object. If no ``input_formats`` argument is provided, the default input formats are @@ -490,7 +490,7 @@ For each field, we describe the default widget used if you don't specify .. attribute:: input_formats - A list of formats used to attempt to convert a string to a valid + An iterable of formats used to attempt to convert a string to a valid ``datetime.datetime`` object, in addition to ISO 8601 formats. The field always accepts strings in ISO 8601 formatted dates or similar @@ -998,7 +998,7 @@ For each field, we describe the default widget used if you don't specify .. attribute:: input_formats - A list of formats used to attempt to convert a string to a valid + An iterable of formats used to attempt to convert a string to a valid ``datetime.time`` object. If no ``input_formats`` argument is provided, the default input formats are |