diff options
author | Stephen Finucane <stephen@that.guru> | 2017-05-18 21:17:43 +0100 |
---|---|---|
committer | Stephen Finucane <stephen@that.guru> | 2017-05-18 21:17:43 +0100 |
commit | 2e86067db350f0ffce615cf9a4643154b79ff17c (patch) | |
tree | f12f90a138658d7c15e0f96d596d81501b3002e6 /patchwork/templatetags | |
parent | 8585ea5afec383c9c5622843bcff0e6c448614c7 (diff) | |
download | patchwork-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.py | 3 | ||||
-rw-r--r-- | patchwork/templatetags/person.py | 2 |
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 |