mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #24451 -- Deprecated comma-separated {% cycle %} syntax.
This commit is contained in:
@@ -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
|
||||
~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user