diff options
| author | Jannis Leidel <jannis@leidel.info> | 2012-02-13 20:57:44 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2012-02-13 20:57:44 +0000 |
| commit | bd13cfa917d3cc4dc854fc0d486adcb45f5b551a (patch) | |
| tree | 851a54f5045600e148c3b821c0614f96ef25aa84 /docs/releases | |
| parent | 4f1ac8f5f15f08f34dc06c7442cec50a7af31c45 (diff) | |
Added a note to the release notes about the new format strings added in r17473.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17520 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/1.4-beta-1.txt | 22 | ||||
| -rw-r--r-- | docs/releases/1.4.txt | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/docs/releases/1.4-beta-1.txt b/docs/releases/1.4-beta-1.txt index 52f265181a..a955b39785 100644 --- a/docs/releases/1.4-beta-1.txt +++ b/docs/releases/1.4-beta-1.txt @@ -502,6 +502,28 @@ Time zone support is enabled by default in new projects created with :djadmin:`startproject`. If you want to use this feature in an existing project, there is a :ref:`migration guide <time-zones-migration-guide>`. +Two new date format strings +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Two new :tfilter:`date` formats for use in template filters, template tags +and :ref:`format-localization`: + +- ``e`` -- the name of the timezone of the given datetime object +- ``o`` -- the ISO 8601 year number + +Please make sure to update your :ref:`custom format files +<custom-format-files>` if they contain either ``e`` or ``o`` in a format +string. For example a Spanish localization format previously only escaped the +``d`` format character:: + + DATE_FORMAT = r'j \de F \de Y' + +But now it needs to also escape ``e`` and ``o``:: + + DATE_FORMAT = r'j \d\e F \d\e Y' + +For more information, see the :tfilter:`date` documentation. + Minor features ~~~~~~~~~~~~~~ diff --git a/docs/releases/1.4.txt b/docs/releases/1.4.txt index 76e67306aa..b44446784b 100644 --- a/docs/releases/1.4.txt +++ b/docs/releases/1.4.txt @@ -490,6 +490,28 @@ the ``html=True`` flag with client's response contains a given HTML fragment. See the :ref:`assertion documentation<assertions>` for more. +Two new date format strings +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Two new :tfilter:`date` formats for use in template filters, template tags +and :ref:`format-localization`: + +- ``e`` -- the name of the timezone of the given datetime object +- ``o`` -- the ISO 8601 year number + +Please make sure to update your :ref:`custom format files +<custom-format-files>` if they contain either ``e`` or ``o`` in a format +string. For example a Spanish localization format previously only escaped the +``d`` format character:: + + DATE_FORMAT = r'j \de F \de Y' + +But now it needs to also escape ``e`` and ``o``:: + + DATE_FORMAT = r'j \d\e F \d\e Y' + +For more information, see the :tfilter:`date` documentation. + Minor features ~~~~~~~~~~~~~~ |
