summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAamir Khan <syst3m.w0rm@gmail.com>2012-07-03 18:11:04 -0400
committerAamir Khan <syst3m.w0rm@gmail.com>2012-07-03 18:11:04 -0400
commitd781f651d8915973e961a6f5b3bc11fa7ed215b7 (patch)
treeb4880e13eecb4130a1dc9f2c528abddccf03f116
parent3f53d3d1a46197047bba68bc5d283486f331830d (diff)
downloadhyperkitty-d781f651d8915973e961a6f5b3bc11fa7ed215b7.tar.gz
hyperkitty-d781f651d8915973e961a6f5b3bc11fa7ed215b7.tar.xz
hyperkitty-d781f651d8915973e961a6f5b3bc11fa7ed215b7.zip
Fix #15: pagination on archives page
-rw-r--r--views/list.py3
1 files changed, 2 insertions, 1 deletions
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)