summaryrefslogtreecommitdiffstats
path: root/forum/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'forum/views.py')
-rw-r--r--forum/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/forum/views.py b/forum/views.py
index 6ac172df..2c61d41e 100644
--- a/forum/views.py
+++ b/forum/views.py
@@ -115,7 +115,7 @@ 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")
+ pagesize = request.session.get("pagesize",10)
try:
page = int(request.GET.get('page', '1'))
except ValueError: