summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-01-31 10:10:46 +0100
committerCarlton Gibson <carlton@noumenal.es>2022-02-01 15:11:35 +0100
commitca88caa1031c0de545d82de8d90dcae0e03651fb (patch)
tree3b17e528d32560385c7a383d597574ab8c8310e4 /docs/ref
parent0dcd549bbe36c060f536ec270d34d9e7d4b8e6c7 (diff)
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.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/settings.txt16
1 files changed, 11 insertions, 5 deletions
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index dac29755d0..73a4b8b649 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -1141,11 +1141,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.