Saturday, November 1, 2014

Warning with 'cycle'

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?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a3ecc17c-5fc9-4a30-8b27-281fc317f548%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment