diff options
| author | Tim Graham <timograham@gmail.com> | 2013-02-25 12:22:02 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-02-25 12:22:02 -0500 |
| commit | 8e5fbebe020878cdce98f8efce50bc337968b2ca (patch) | |
| tree | 798299a033e3ab183e0afa40fc16b789865851f4 | |
| parent | 906dc8522a1745e0e12c8061e4170540f7d0f486 (diff) | |
Fixed #19801 - Added brackets to input_formats.
Thanks leandron85@ for the suggestion.
| -rw-r--r-- | docs/ref/forms/fields.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt index 85650adcf4..c8b8044d26 100644 --- a/docs/ref/forms/fields.txt +++ b/docs/ref/forms/fields.txt @@ -398,21 +398,21 @@ For each field, we describe the default widget used if you don't specify If no ``input_formats`` argument is provided, the default input formats are:: - '%Y-%m-%d', # '2006-10-25' + ['%Y-%m-%d', # '2006-10-25' '%m/%d/%Y', # '10/25/2006' - '%m/%d/%y', # '10/25/06' + '%m/%d/%y'] # '10/25/06' Additionally, if you specify :setting:`USE_L10N=False<USE_L10N>` in your settings, the following will also be included in the default input formats:: - '%b %d %Y', # 'Oct 25 2006' + ['%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' + '%d %B, %Y'] # '25 October, 2006' See also :ref:`format localization <format-localization>`. @@ -437,7 +437,7 @@ For each field, we describe the default widget used if you don't specify If no ``input_formats`` argument is provided, the default input formats are:: - '%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59' + ['%Y-%m-%d %H:%M:%S', # '2006-10-25 14:30:59' '%Y-%m-%d %H:%M', # '2006-10-25 14:30' '%Y-%m-%d', # '2006-10-25' '%m/%d/%Y %H:%M:%S', # '10/25/2006 14:30:59' @@ -445,7 +445,7 @@ For each field, we describe the default widget used if you don't specify '%m/%d/%Y', # '10/25/2006' '%m/%d/%y %H:%M:%S', # '10/25/06 14:30:59' '%m/%d/%y %H:%M', # '10/25/06 14:30' - '%m/%d/%y', # '10/25/06' + '%m/%d/%y'] # '10/25/06' See also :ref:`format localization <format-localization>`. |
