diff options
author | Adolfo Fitoria <fitoria@fitoria-laptop.(none)> | 2009-07-29 16:14:25 -0600 |
---|---|---|
committer | Adolfo Fitoria <fitoria@fitoria-laptop.(none)> | 2009-07-29 16:14:25 -0600 |
commit | 30202c88eadc4d64a9bac00d7c241d2d20158d82 (patch) | |
tree | efaeea952c68e80d4f5aecc8b14baead89d290ca /forum | |
parent | b6aa7c847234ed985ec693c53633a7f0f3e2cd9c (diff) | |
download | askbot-30202c88eadc4d64a9bac00d7c241d2d20158d82.tar.gz askbot-30202c88eadc4d64a9bac00d7c241d2d20158d82.tar.bz2 askbot-30202c88eadc4d64a9bac00d7c241d2d20158d82.zip |
fixing the little bug
Diffstat (limited to 'forum')
-rw-r--r-- | forum/views.py | 6 |
1 files changed, 5 insertions, 1 deletions
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:
|