summaryrefslogtreecommitdiff
path: root/docs/ref/templates
diff options
context:
space:
mode:
authorJuan Catalano <jc@streema.com>2013-03-24 22:53:48 -0700
committerClaude Paroz <claude@2xlibre.net>2013-04-20 17:18:35 +0200
commit78c842a3230f026ad678d243e5459cd6b314d99a (patch)
treea4a22465ccc10f4efcc2816d31f2a058d9e82c9c /docs/ref/templates
parent1ddeeb5b8ed5b2cf28302c8aca0a2915a3cfb240 (diff)
Adapted uses of versionchanged/versionadded to the new form.
Refs #20104.
Diffstat (limited to 'docs/ref/templates')
-rw-r--r--docs/ref/templates/api.txt1
-rw-r--r--docs/ref/templates/builtins.txt41
2 files changed, 22 insertions, 20 deletions
diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt
index 0162f78eed..677aa13cbb 100644
--- a/docs/ref/templates/api.txt
+++ b/docs/ref/templates/api.txt
@@ -272,6 +272,7 @@ Every context contains ``True``, ``False`` and ``None``. As you would expect,
these variables resolve to the corresponding Python objects.
.. versionadded:: 1.5
+
Before Django 1.5, these variables weren't a special case, and they
resolved to ``None`` unless you defined them in the context.
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 123e114c4a..474fb4d84a 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -191,19 +191,19 @@ call to ``{% cycle %}`` doesn't specify silent::
.. versionchanged:: 1.6
-To improve safety, future versions of ``cycle`` will automatically escape
-their output. You're encouraged to activate this behavior by loading
-``cycle`` from the ``future`` template library::
+ To improve safety, future versions of ``cycle`` will automatically escape
+ their output. You're encouraged to activate this behavior by loading
+ ``cycle`` from the ``future`` template library::
- {% load cycle from future %}
+ {% load cycle from future %}
-When using the ``future`` version, you can disable auto-escaping with::
+ When using the ``future`` version, you can disable auto-escaping with::
- {% for o in some_list %}
- <tr class="{% autoescape off %}{% cycle rowvalue1 rowvalue2 %}{% endautoescape %}">
- ...
- </tr>
- {% endfor %}
+ {% for o in some_list %}
+ <tr class="{% autoescape off %}{% cycle rowvalue1 rowvalue2 %}{% endautoescape %}">
+ ...
+ </tr>
+ {% endfor %}
.. templatetag:: debug
@@ -294,21 +294,21 @@ to escape the variables in the firstof tag, you must do so explicitly::
.. versionchanged:: 1.6
-To improve safety, future versions of ``firstof`` will automatically escape
-their output. You're encouraged to activate this behavior by loading
-``firstof`` from the ``future`` template library::
+ To improve safety, future versions of ``firstof`` will automatically escape
+ their output. You're encouraged to activate this behavior by loading
+ ``firstof`` from the ``future`` template library::
- {% load firstof from future %}
+ {% load firstof from future %}
-When using the ``future`` version, you can disable auto-escaping with::
+ When using the ``future`` version, you can disable auto-escaping with::
- {% autoescape off %}
- {% firstof var1 var2 var3 "<strong>fallback value</strong>" %}
- {% endautoescape %}
+ {% autoescape off %}
+ {% firstof var1 var2 var3 "<strong>fallback value</strong>" %}
+ {% endautoescape %}
-Or if only some variables should be escaped, you can use::
+ Or if only some variables should be escaped, you can use::
- {% firstof var1 var2|safe var3 "<strong>fallback value</strong>"|safe %}
+ {% firstof var1 var2|safe var3 "<strong>fallback value</strong>"|safe %}
.. templatetag:: for
@@ -1065,6 +1065,7 @@ by the context as to the current application.
Don't forget to put quotes around the function path or pattern name!
.. versionchanged:: 1.5
+
The first parameter used not to be quoted, which was inconsistent with
other template tags. Since Django 1.5, it is evaluated according to
the usual rules: it can be a quoted string or a variable that will be