X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/28fac547f6c8639b4c4edd66c895dacc7dff030e..fdb7cb5b801cce2e15c851f272f3f4f1efa48ce8:/fnpdjango/templatetags/fnp_prevnext.py?ds=sidebyside diff --git a/fnpdjango/templatetags/fnp_prevnext.py b/fnpdjango/templatetags/fnp_prevnext.py index 17c8188..cb4efe2 100644 --- 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()