diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-04 13:18:45 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-04 13:18:45 -0400 |
commit | 3816f43824e719cb74744202ef3585f0c55b3db7 (patch) | |
tree | b0a8abce32afe07fe153c8a1f10c00b69c8c8d7f /forum/views/readers.py | |
parent | 388290fb2809fb024c20dbf7b033dbda0d7b7535 (diff) | |
download | askbot-3816f43824e719cb74744202ef3585f0c55b3db7.tar.gz askbot-3816f43824e719cb74744202ef3585f0c55b3db7.tar.bz2 askbot-3816f43824e719cb74744202ef3585f0c55b3db7.zip |
ROADMAP, TODO, restored posts per page selector
Diffstat (limited to 'forum/views/readers.py')
-rw-r--r-- | forum/views/readers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/forum/views/readers.py b/forum/views/readers.py index 938fa133..3f0bef0f 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -88,7 +88,7 @@ def index(request):#generates front page - shows listing of questions sorted in } view_id, orderby = _get_and_remember_questions_sort_method(request, view_dic, 'latest') - pagesize = QUESTIONS_PAGE_SIZE #request.session.get("pagesize",QUESTIONS_PAGE_SIZE) + pagesize = request.session.get("pagesize",QUESTIONS_PAGE_SIZE) try: page = int(request.GET.get('page', '1')) except ValueError: @@ -146,7 +146,7 @@ def questions(request, tagname=None, unanswered=False):#a view generating listin # 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 = QUESTIONS_PAGE_SIZE #request.session.get("pagesize",QUESTIONS_PAGE_SIZE) + pagesize = request.session.get("pagesize",QUESTIONS_PAGE_SIZE) try: page = int(request.GET.get('page', '1')) except ValueError: |