summaryrefslogtreecommitdiff
path: root/docs/releases
diff options
context:
space:
mode:
authorJannis Leidel <jannis@leidel.info>2010-05-16 20:48:19 +0000
committerJannis Leidel <jannis@leidel.info>2010-05-16 20:48:19 +0000
commit06ab9eeaf5b43b7020b68363a23d1aab2e844aa6 (patch)
treec11b8d532553c6b067e4767738856ee25f5d273f /docs/releases
parent34ddcd9939568e7d19a0059647a9faaf36972083 (diff)
Added notes about the two new date format specifiers (``c`` and ``u``) added in 1.2. Thanks for the patch, Ramiro Morales.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13267 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/releases')
-rw-r--r--docs/releases/1.2.txt16
1 files changed, 15 insertions, 1 deletions
diff --git a/docs/releases/1.2.txt b/docs/releases/1.2.txt
index d94aefed7e..4538b901cf 100644
--- a/docs/releases/1.2.txt
+++ b/docs/releases/1.2.txt
@@ -235,7 +235,7 @@ definitions to use the new prototype as soon as possible.
If your ``get_db_prep_*()`` methods made no use of the database
connection, you should be able to upgrade by renaming
``get_db_prep_value()`` to ``get_prep_value()`` and
-``get_db_prep_lookup()`` to ``get_prep_lookup()`. If you require
+``get_db_prep_lookup()`` to ``get_prep_lookup()``. If you require
database specific conversions, then you will need to provide an
implementation ``get_db_prep_*`` that uses the ``connection``
argument to resolve database-specific values.
@@ -997,3 +997,17 @@ If a user has JavaScript enabled in their browser, the interface for
inline objects in the admin now allows inline objects to be
dynamically added and removed. Users without JavaScript-enabled
browsers will see no change in the behavior of inline objects.
+
+New ``now`` template tag format specifier characters: ``c`` and ``u``
+---------------------------------------------------------------------
+
+The argument to the :ttag:`now` has gained two new format characters:
+``c`` to specify that a datetime value should be formatted in ISO 8601
+format, and ``u`` that allows output of the microseconds part of a
+datetime or time value.
+
+These are also available in others parts like the :tfilter:`date` and
+:tfilter:`time` template filters, the ``humanize`` template tag library
+and the new `format localization`_ framework.
+
+.. _format localization: `Improved localization`_