diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-01-31 10:10:46 +0100 |
|---|---|---|
| committer | Carlton Gibson <carlton.gibson@noumenal.es> | 2022-02-01 15:14:17 +0100 |
| commit | 0c06819caae202f1a7aa96d2da2affb2400fef10 (patch) | |
| tree | 2ed88df7e45668c1253d876bc8da175e5b544384 /docs | |
| parent | 1c74ac864861ef3dd33b27ea0e183ff1a35ea503 (diff) | |
[4.0.x] Refs #33476 -- Used vertical hanging indentation for format lists with inline comments.
Lists with multiple values and comments per-line are reformatted
by Black to multiple lines with a single comment. For example:
DATE_INPUT_FORMATS =
"%Y-%m-%d", "%m/%d/%Y", "%m/%d/%y", # '2006-10-25', '10/25/2006', '10/25/06'
]
is reformatted to the:
DATE_INPUT_FORMATS =
"%Y-%m-%d",
"%m/%d/%Y",
"%m/%d/%y", # '2006-10-25', '10/25/2006', '10/25/06'
]
This reformats affected entries to multiple lines with corresponding
comments.
Backport of ca88caa1031c0de545d82de8d90dcae0e03651fb from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/settings.txt | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 02699ac04e..850aa0df21 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -1111,11 +1111,17 @@ See also :setting:`DATETIME_FORMAT`, :setting:`TIME_FORMAT` and :setting:`SHORT_ Default:: [ - '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06' - '%b %d %Y', '%b %d, %Y', # 'Oct 25 2006', 'Oct 25, 2006' - '%d %b %Y', '%d %b, %Y', # '25 Oct 2006', '25 Oct, 2006' - '%B %d %Y', '%B %d, %Y', # 'October 25 2006', 'October 25, 2006' - '%d %B %Y', '%d %B, %Y', # '25 October 2006', '25 October, 2006' + '%Y-%m-%d', # '2006-10-25' + '%m/%d/%Y', # '10/25/2006' + '%m/%d/%y', # '10/25/06' + '%b %d %Y', # 'Oct 25 2006' + '%b %d, %Y', # 'Oct 25, 2006' + '%d %b %Y', # '25 Oct 2006' + '%d %b, %Y', # '25 Oct, 2006' + '%B %d %Y', # 'October 25 2006' + '%B %d, %Y', # 'October 25, 2006' + '%d %B %Y', # '25 October 2006' + '%d %B, %Y', # '25 October, 2006' ] A list of formats that will be accepted when inputting data on a date field. |
