Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.4.X] Fixed #18490 - Updated DateField input formats; thanks dloewe…

…nherz for the draft patch.

Backport of fa8fb2b from master
  • Loading branch information...
commit 7e8483e70b8180277b6ea99c1315ede7d887ce85 1 parent 376a189
Tim Graham authored September 07, 2012

Showing 1 changed file with 15 additions and 5 deletions. Show diff stats Hide diff stats

  1. 20  docs/ref/forms/fields.txt
20  docs/ref/forms/fields.txt
@@ -404,11 +404,21 @@ For each field, we describe the default widget used if you don't specify
404 404
 
405 405
     If no ``input_formats`` argument is provided, the default input formats are::
406 406
 
407  
-        '%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', # '2006-10-25', '10/25/2006', '10/25/06'
408  
-        '%b %d %Y', '%b %d, %Y',            # 'Oct 25 2006', 'Oct 25, 2006'
409  
-        '%d %b %Y', '%d %b, %Y',            # '25 Oct 2006', '25 Oct, 2006'
410  
-        '%B %d %Y', '%B %d, %Y',            # 'October 25 2006', 'October 25, 2006'
411  
-        '%d %B %Y', '%d %B, %Y',            # '25 October 2006', '25 October, 2006'
  407
+        '%Y-%m-%d',       # '2006-10-25'
  408
+        '%m/%d/%Y',       # '10/25/2006'
  409
+        '%m/%d/%y',       # '10/25/06'
  410
+
  411
+    Additionally, if you specify :setting:`USE_L10N=False<USE_L10N>` in your settings, the
  412
+    following will also be included in the default input formats::
  413
+
  414
+        '%b %m %d',       # 'Oct 25 2006'
  415
+        '%b %d, %Y',      # 'Oct 25, 2006'
  416
+        '%d %b %Y',       # '25 Oct 2006'
  417
+        '%d %b, %Y',      # '25 Oct, 2006'
  418
+        '%B %d %Y',       # 'October 25 2006'
  419
+        '%B %d, %Y',      # 'October 25, 2006'
  420
+        '%d %B %Y',       # '25 October 2006'
  421
+        '%d %B, %Y',      # '25 October, 2006'
412 422
 
413 423
 ``DateTimeField``
414 424
 ~~~~~~~~~~~~~~~~~

0 notes on commit 7e8483e

Please sign in to comment.
Something went wrong with that request. Please try again.