X-Git-Url: https://git.mdrn.pl/fnpdjango.git/blobdiff_plain/5d92673d4fce9136e113c959b3660def583cac98..1be598eb573f9ad234ba4ab8e467f07fd8351fa8:/fnpdjango/templatetags/fnp_prevnext.py diff --git a/fnpdjango/templatetags/fnp_prevnext.py b/fnpdjango/templatetags/fnp_prevnext.py index 294cd12..a808e6e 100644 --- a/fnpdjango/templatetags/fnp_prevnext.py +++ b/fnpdjango/templatetags/fnp_prevnext.py @@ -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: