mirror of
https://github.com/django/django.git
synced 2025-11-02 04:48:33 +00:00
Fixed #24451 -- Deprecated comma-separated {% cycle %} syntax.
This commit is contained in:
parent
88c605e3e3
commit
c36b60836b
6 changed files with 36 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue