Skip to content

Commit

Permalink
[1.0.X] Fixed #10007 -- Corrected (and narrowed) a reference to the P…
Browse files Browse the repository at this point in the history
…ython standard library documentation. Thanks to d00gs for the report.

Merge of r9863 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9873 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Feb 22, 2009
1 parent 49216f5 commit b8797ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/ref/templates/builtins.txt
Expand Up @@ -724,9 +724,9 @@ different call::




{% url path.to.view arg, arg2 as the_url %} {% url path.to.view arg, arg2 as the_url %}

<a href="{{ the_url }}">I'm linking to {{ the_url }}</a> <a href="{{ the_url }}">I'm linking to {{ the_url }}</a>

This ``{% url ... as var %}`` syntax will *not* cause an error if the view is This ``{% url ... as var %}`` syntax will *not* cause an error if the view is
missing. In practice you'll use this to link to views that are optional:: missing. In practice you'll use this to link to views that are optional::


Expand Down Expand Up @@ -1247,7 +1247,7 @@ singular and plural suffix, separated by a comma.
Example:: Example::


You have {{ num_cherries }} cherr{{ num_cherries|pluralize:"y,ies" }}. You have {{ num_cherries }} cherr{{ num_cherries|pluralize:"y,ies" }}.

.. templatefilter:: pprint .. templatefilter:: pprint


pprint pprint
Expand Down Expand Up @@ -1340,8 +1340,8 @@ Formats the variable according to the argument, a string formatting specifier.
This specifier uses Python string formatting syntax, with the exception that This specifier uses Python string formatting syntax, with the exception that
the leading "%" is dropped. the leading "%" is dropped.


See http://docs.python.org/lib/typesseq-strings.html for documentation of See http://docs.python.org/library/stdtypes.html#string-formatting-operations
Python string formatting for documentation of Python string formatting


For example:: For example::


Expand Down

0 comments on commit b8797ae

Please sign in to comment.