summaryrefslogtreecommitdiff
path: root/patchwork/templatetags
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-05-18 21:17:43 +0100
committerStephen Finucane <stephen@that.guru>2017-05-18 21:17:43 +0100
commit2e86067db350f0ffce615cf9a4643154b79ff17c (patch)
treef12f90a138658d7c15e0f96d596d81501b3002e6 /patchwork/templatetags
parent8585ea5afec383c9c5622843bcff0e6c448614c7 (diff)
downloadpatchwork-2e86067db350f0ffce615cf9a4643154b79ff17c.tar
patchwork-2e86067db350f0ffce615cf9a4643154b79ff17c.tar.gz
compat: Handle moved 'reverse' function
This raises a warning in Django 1.10 and will cause an error in 2.0. Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'patchwork/templatetags')
-rw-r--r--patchwork/templatetags/listurl.py3
-rw-r--r--patchwork/templatetags/person.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/patchwork/templatetags/listurl.py b/patchwork/templatetags/listurl.py
index 9d3b685..6b9106e 100644
--- a/patchwork/templatetags/listurl.py
+++ b/patchwork/templatetags/listurl.py
@@ -20,11 +20,12 @@
from __future__ import absolute_import
from django.conf import settings
-from django.core.urlresolvers import reverse, NoReverseMatch
from django import template
from django.utils.encoding import smart_str
from django.utils.html import escape
+from patchwork.compat import reverse
+from patchwork.compat import NoReverseMatch
from patchwork.filters import filterclasses
diff --git a/patchwork/templatetags/person.py b/patchwork/templatetags/person.py
index adbabb0..a6f23e9 100644
--- a/patchwork/templatetags/person.py
+++ b/patchwork/templatetags/person.py
@@ -19,11 +19,11 @@
from __future__ import absolute_import
-from django.core.urlresolvers import reverse
from django import template
from django.utils.html import escape
from django.utils.safestring import mark_safe
+from patchwork.compat import reverse
from patchwork.filters import SubmitterFilter