On 11/01/2014 01:36 PM, Neto wrote:
> Hi, im using template tag 'cycle' (in Django version 1.7.1,) and is
> showing it in my terminal:
> 
>     RemovedInDjango18Warning: 'The `cycle` template tag is changing to
>     escape its arguments; the non-autoescaping version is deprecated.
>     Load it from the `future` tag library to start using the new behavior.
> 
> 
> In template:
> 
> <div class='{% cycle 'a1' 'a2' %}'></div>
> 
> Am I doing something wrong?

Not "wrong", exactly, but you should add a `{% load cycle from future
%}`  at the top of this template to make the behavior more
future-compatible. See the note at the end of the documentation for the
cycle tag:
https://docs.djangoproject.com/en/1.7/ref/templates/builtins/#cycle

Carl

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to