Skip to content
Browse files

Merge branch 'master' of https://github.com/twidi/django-pure-pagination

  • Loading branch information...
2 parents f524dc2 + a28ccdc commit 5ea8d72ac49e598a2a20dab6872ae92941c708bd @juandecarrion committed
Showing with 4 additions and 4 deletions.
  1. +4 −4 pure_pagination/paginator.py
View
8 pure_pagination/paginator.py
@@ -110,7 +110,7 @@ def wrapper(self, *args, **kwargs):
new_result.append(number)
return new_result
return result
-
+
return wrapper
class Page(object):
@@ -121,8 +121,8 @@ def __init__(self, object_list, number, paginator):
# Reason: I just want to perform this operation once, and not once per page
self.base_queryset = self.paginator.request.GET.copy()
self.base_queryset['page'] = 'page'
- self.base_queryset = self.base_queryset.urlencode().replace('page=page', 'page=%s')
-
+ self.base_queryset = self.base_queryset.urlencode().replace('%', '%%').replace('page=page', 'page=%s')
+
self.number = PageRepresentation(number, self._other_page_querystring(number))
def __repr__(self):
@@ -206,4 +206,4 @@ def _other_page_querystring(self, page_number):
def render(self):
return render_to_string('pure_pagination/pagination.html', {'current_page':self})
-
+

0 comments on commit 5ea8d72

Please sign in to comment.
Something went wrong with that request. Please try again.