]> git.ozlabs.org Git - patchwork/commitdiff
patchwork/templates: Suppress cycle template tag warning
authorJeremy Kerr <jk@ozlabs.org>
Fri, 5 Jun 2015 06:53:07 +0000 (14:53 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 5 Jun 2015 06:53:07 +0000 (14:53 +0800)
Running on django 1.7 gives a warning:

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.

Although this change doesn't affect this template, suppress the warning
by loading from the future library.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
patchwork/templates/patchwork/patch-list.html

index 718949e020bbbe84719c5f703a552b07e8fd038e..4b3cb23afe7217c075995a042fd5c305a9327f08 100644 (file)
@@ -3,6 +3,8 @@
 {% load patch %}
 {% load static %}
 
+{% load cycle from future %}
+
 {% include "patchwork/pagination.html" %}