From d781f651d8915973e961a6f5b3bc11fa7ed215b7 Mon Sep 17 00:00:00 2001 From: Aamir Khan Date: Tue, 3 Jul 2012 18:11:04 -0400 Subject: Fix #15: pagination on archives page --- views/list.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views/list.py b/views/list.py index af68a01..17da2c6 100644 --- a/views/list.py +++ b/views/list.py @@ -32,7 +32,7 @@ MONTH_DISCUSSIONS = 82 -def archives(request, mlist_fqdn, year=None, month=None, day=None, pageNo=None): +def archives(request, mlist_fqdn, year=None, month=None, day=None): # No year/month: past 32 days # year and month: find the 32 days for that month # @TODO : modify url.py to account for page number @@ -87,6 +87,7 @@ def archives(request, mlist_fqdn, year=None, month=None, day=None, pageNo=None): #print msg paginator = Paginator(threads, 10) + pageNo = request.GET.get('page') try: threads = paginator.page(pageNo) -- cgit