0.5: Django 3.2 support, drop Django<1.11, Python<3.6, remove some compatibility...
[fnpdjango.git] / fnpdjango / templatetags / fnp_prevnext.py
index 294cd12..a808e6e 100644 (file)
@@ -1,7 +1,8 @@
 from copy import copy
-from urllib import urlencode
+from urllib.parse import urlencode
 from django.template import Library
 
+
 register = Library()
 
 
@@ -11,7 +12,6 @@ def previous_page(context, fallback=None, fallback_title=None):
     if current > 1:
         get_dict = copy(context['request'].GET)
         get_dict['page'] = current - 1
-        print get_dict
         return {'number': current - 1, 'title': None, 'url': None,
                 'get_dict': urlencode(get_dict)}
     else:
@@ -25,7 +25,6 @@ def next_page(context, fallback=None, fallback_title=None):
     if current < page_range[-1]:
         get_dict = copy(context['request'].GET)
         get_dict['page'] = current + 1
-        print get_dict
         return {'number': current + 1, 'title': None, 'url': None,
                 'get_dict': urlencode(get_dict)}
     else: