fnp
/
fnpdjango.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Python 3, Django 1.7+ compatilibity, some tests.
[fnpdjango.git]
/
fnpdjango
/
templatetags
/
fnp_prevnext.py
diff --git
a/fnpdjango/templatetags/fnp_prevnext.py
b/fnpdjango/templatetags/fnp_prevnext.py
index
17c8188
..
cb4efe2
100644
(file)
--- a/
fnpdjango/templatetags/fnp_prevnext.py
+++ b/
fnpdjango/templatetags/fnp_prevnext.py
@@
-1,7
+1,12
@@
from copy import copy
-from urllib import urlencode
from django.template import Library
+try:
+ from urllib.parse import urlencode
+except ImportError:
+ from urllib import urlencode
+
+
register = Library()