From ca1352969368cdd8e5fb83bc06105c6003a2b8f5 Mon Sep 17 00:00:00 2001 From: Adolfo Fitoria Date: Wed, 29 Jul 2009 16:14:01 -0600 Subject: fixing the little bug --- forum/views.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'forum') diff --git a/forum/views.py b/forum/views.py index 08a0e958..8a2ba812 100644 --- a/forum/views.py +++ b/forum/views.py @@ -115,7 +115,11 @@ def questions(request, tagname=None, unanswered=False): # Set flag to False by default. If it is equal to True, then need to be saved. pagesize_changed = False # get pagesize from session, if failed then get default value - pagesize = request.session.get("pagesize") + #ERROR: this does not do what it wants ^^ + #pagesize = request.session.get("pagesize") + #HACK: temporal hack + pagesize = int(request.GET.get("pagesize", QUESTIONS_PAGE_SIZE)) + try: page = int(request.GET.get('page', '1')) except ValueError: -- cgit v1.2.3-1-g7c22