From 7ebb2779b65af6ad5efbe06ff8449b89d0478296 Mon Sep 17 00:00:00 2001 From: Semeyon Svetliy Date: Mon, 20 Aug 2012 15:50:02 +0700 Subject: [PATCH] Fixed bug in page extraction from GET request --- pagination/templatetags/pagination_tags.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pagination/templatetags/pagination_tags.py b/pagination/templatetags/pagination_tags.py index ae843b1..6135ed8 100644 --- a/pagination/templatetags/pagination_tags.py +++ b/pagination/templatetags/pagination_tags.py @@ -88,7 +88,7 @@ def render(self, context): paginate_by = self.paginate_by.resolve(context) paginator = Paginator(value, paginate_by, self.orphans) try: - page_obj = paginator.page(context['request'].page) + page_obj = paginator.page(context['request'].GET.get('page', 1)) except InvalidPage: if INVALID_PAGE_RAISES_404: raise Http404('Invalid page requested. If DEBUG were set to ' +