Opened 16 years ago
Closed 16 years ago
#9521 closed (duplicate)
cycle templatetag is nondeterministic
Description ¶
It can bite you when for example you are coloring rows in your table in some pattern. After refresh you may get different coloring (if you use the sample compiled template, which is not true for default django template processing).
from django.template import Context, Template
t = Template("{% cycle 1 2 3 %}")
t.render(Context())
u'1'
t.render(Context())
u'2'
t.render(Context())
u'3'
t.render(Context())
u'1'
Note:
See TracTickets
for help on using tickets.
Formatted code: