summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-03-05 12:38:42 -0500
committerTim Graham <timograham@gmail.com>2015-03-07 07:42:39 -0500
commitc36b60836be9e78ab877566cc43dc03960ce944d (patch)
tree9c7dde39c5d44e3db51707bf23d391827e17ba7a /docs
parent88c605e3e34cebd5485d286a17ac84c7b8b0faf1 (diff)
Fixed #24451 -- Deprecated comma-separated {% cycle %} syntax.
Diffstat (limited to 'docs')
-rw-r--r--docs/internals/deprecation.txt3
-rw-r--r--docs/ref/templates/builtins.txt16
-rw-r--r--docs/releases/1.9.txt13
3 files changed, 24 insertions, 8 deletions
diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt
index a597baf439..cb5d989450 100644
--- a/docs/internals/deprecation.txt
+++ b/docs/internals/deprecation.txt
@@ -187,6 +187,9 @@ details on these changes.
from ``allow_migrate(self, db, model)`` to
``allow_migrate(self, db, app_label, model_name=None, **hints)``.
+* Support for the syntax of ``{% cycle %}`` that uses comma-separated arguments
+ will be removed.
+
.. _deprecation-removed-in-1.9:
1.9
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 4c7d1d6031..aef4443c6a 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -185,17 +185,17 @@ call to ``{% cycle %}`` doesn't specify ``silent``::
{% cycle 'row1' 'row2' as rowcolors silent %}
{% cycle rowcolors %}
-For backward compatibility, the ``{% cycle %}`` tag supports the much inferior
-old syntax from previous Django versions. You shouldn't use this in any new
-projects, but for the sake of the people who are still using it, here's what it
-looks like::
+.. deprecated:: 1.9
- {% cycle row1,row2,row3 %}
+ The ``{% cycle %}`` tag supports the much inferior old syntax from previous
+ Django versions. You shouldn't use this in any new projects, but for the
+ sake of the people who are still using it, here's what it looks like::
-In this syntax, each value gets interpreted as a literal string, and there's no
-way to specify variable values. Or literal commas. Or spaces. Did we mention
-you shouldn't use this syntax in any new projects?
+ {% cycle row1,row2,row3 %}
+ In this syntax, each value gets interpreted as a literal string, and there's
+ no way to specify variable values, literal commas, or spaces. Support for
+ this syntax will be removed in Django 2.0.
.. templatetag:: debug
diff --git a/docs/releases/1.9.txt b/docs/releases/1.9.txt
index 4cfdaaa1eb..b75216fbc6 100644
--- a/docs/releases/1.9.txt
+++ b/docs/releases/1.9.txt
@@ -277,6 +277,19 @@ template tags that store results in a template variable. The
ability, making the ``assignment_tag`` obsolete. Tags that use
``assignment_tag`` should be updated to use ``simple_tag``.
+``{% cycle %}`` syntax with comma-separated arguments
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+The :ttag:`cycle` tag supports an inferior old syntax from previous Django
+versions:
+
+.. code-block:: html+django
+
+ {% cycle row1,row2,row3 %}
+
+Its parsing caused bugs with the current syntax, so support for the old syntax
+will be removed in Django 2.0 following an accelerated deprecation.
+
Miscellaneous
~~~~~~~~~~~~~