diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-10-21 14:50:47 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-10-21 14:50:47 +0000 |
| commit | 1671fc48ab9f1c73ef04a10f0eb9e1f8452cd004 (patch) | |
| tree | 1a5290e5d6429e93d5d50829b8ddde0ecadd5bcd /docs | |
| parent | f5831b03c908d9d4bf59f0a0cef4e3db221367ca (diff) | |
Changed the default form presentation of datetime values to not include the
fractional second values (they usually aren't going to be needed). Based on
patches from yi.codeplayer@gmail.com, andrews and Wiliam Alves de Souza. Fixed #4428, #4487
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6578 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/newforms.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/docs/newforms.txt b/docs/newforms.txt index 24294d68f2..5e33a478ee 100644 --- a/docs/newforms.txt +++ b/docs/newforms.txt @@ -1201,7 +1201,7 @@ If no ``input_formats`` argument is provided, the default input formats are:: ``DateTimeField`` ~~~~~~~~~~~~~~~~~ - * Default widget: ``TextInput`` + * Default widget: ``DateTimeInput`` * Empty value: ``None`` * Normalizes to: A Python ``datetime.datetime`` object. * Validates that the given value is either a ``datetime.datetime``, @@ -1222,6 +1222,9 @@ If no ``input_formats`` argument is provided, the default input formats are:: '%m/%d/%y %H:%M', # '10/25/06 14:30' '%m/%d/%y', # '10/25/06' +**New in Django development version:** The ``DateTimeField`` used to use a +``TextInput`` widget by default. This has now changed. + ``DecimalField`` ~~~~~~~~~~~~~~~~ @@ -1558,6 +1561,7 @@ commonly used groups of widgets: ``MultipleHiddenInput`` Multiple ``<input type='hidden' ...`` instances. ``FileInput`` ``<input type='file' ...`` + ``DateTimeInput`` ``<input type='text' ...`` ``Textarea`` ``<textarea>...</textarea>`` ``CheckboxInput`` ``<input type='checkbox' ...`` ``Select`` ``<select><option ...`` @@ -1571,6 +1575,9 @@ commonly used groups of widgets: one for the Date, and one for the Time. ============================ =========================================== +**New in Django development version:** The ``DateTimeInput`` has been added +since the last release. + Specifying widgets ------------------ |
