Ticket #13547: 13547-docs.diff

File 13547-docs.diff, 2.8 KB (added by Ramiro Morales, 14 years ago)

Docuemntation fixes related to this change

  • docs/ref/templates/builtins.txt

    diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
    a b  
    723723
    724724This would display as "It is the 4th of September".
    725725
     726.. versionadded:: 1.2
     727
     728The ``c`` and ``u`` format specification characters were added in Django 1.2.
     729
    726730.. templatetag:: regroup
    727731
    728732regroup
     
    11321136
    11331137Given format can be one of the predefined ones ``DATE_FORMAT``,
    11341138``DATETIME_FORMAT``, ``SHORT_DATE_FORMAT`` or ``SHORT_DATETIME_FORMAT``,
    1135 or a custom format, same as the `now`_ tag. Note that predefined formats may
    1136 vary depending on the current locale.
     1139or a custom format, same as the :ttag:`now` tag. Note that predefined formats
     1140may vary depending on the current locale.
    11371141
    11381142For example::
    11391143
     
    17801784Formats a time according to the given format.
    17811785
    17821786Given format can be the predefined one ``TIME_FORMAT``, or a custom format,
    1783 same as the `now`_ tag. Note that the predefined format is locale depending.
     1787same as the :ttag:`now` tag. Note that the predefined format is locale-
     1788dependant.
    17841789
    17851790The time filter will only accept parameters in the format string that relate
    17861791to the time of day, not the date (for obvious reasons). If you need to
    1787 format a date, use the `date`_ filter.
     1792format a date, use the :tfilter:`date` filter.
    17881793
    17891794For example::
    17901795
  • docs/releases/1.2.txt

    diff --git a/docs/releases/1.2.txt b/docs/releases/1.2.txt
    a b  
    235235If your ``get_db_prep_*()`` methods made no use of the database
    236236connection, you should be able to upgrade by renaming
    237237``get_db_prep_value()`` to ``get_prep_value()`` and
    238 ``get_db_prep_lookup()`` to ``get_prep_lookup()`. If you require
     238``get_db_prep_lookup()`` to ``get_prep_lookup()``. If you require
    239239database specific conversions, then you will need to provide an
    240240implementation ``get_db_prep_*`` that uses the ``connection``
    241241argument to resolve database-specific values.
     
    997997inline objects in the admin now allows inline objects to be
    998998dynamically added and removed. Users without JavaScript-enabled
    999999browsers will see no change in the behavior of inline objects.
     1000
     1001New ``now`` template tag format specifier characters: ``c`` and ``u``
     1002---------------------------------------------------------------------
     1003
     1004The argument to the :ttag:`now` has gained two new format characters: ``c`` to
     1005specify that a date+time value should be output in ISO 8601 format, and ``u``
     1006that allows output of the microseconds part of a date+time or time value.
     1007
     1008These are also available in others parts like the :tfilter:`date` and
     1009:tfilter:`time` template filters, the ``humanize`` template tag library and the
     1010new `format localization`_ framework.
     1011
     1012.. _format localization: `Improved localization`_
Back to Top