diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-25 22:06:41 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-25 22:06:41 -0400 |
commit | b687846b99efda0ef69fb73084d3f64d5b6ddcb1 (patch) | |
tree | 0960c1e2135fddc45ee72fe424d24ea261ebb858 /forum_modules | |
parent | f7c685c68c503119b4ff7541a06337613bfce137 (diff) | |
download | askbot-b687846b99efda0ef69fb73084d3f64d5b6ddcb1.tar.gz askbot-b687846b99efda0ef69fb73084d3f64d5b6ddcb1.tar.bz2 askbot-b687846b99efda0ef69fb73084d3f64d5b6ddcb1.zip |
page size selector works again - some changes in templates
Diffstat (limited to 'forum_modules')
-rwxr-xr-x | forum_modules/books/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/forum_modules/books/views.py b/forum_modules/books/views.py index 35e9f0fe..d4907e5f 100755 --- a/forum_modules/books/views.py +++ b/forum_modules/books/views.py @@ -37,7 +37,7 @@ def book(request, short_name, unanswered=False): author_rss = BookAuthorRss.objects.filter(book=book) # get pagesize from session, if failed then get default value - user_page_size = request.session.get("pagesize", QUESTIONS_PAGE_SIZE) + user_page_size = request.session.get("page_size", QUESTIONS_PAGE_SIZE) # set pagesize equal to logon user specified value in database if request.user.is_authenticated() and request.user.questions_per_page > 0: user_page_size = request.user.questions_per_page @@ -82,7 +82,7 @@ def book(request, short_name, unanswered=False): 'previous': questions.previous_page_number(), 'next': questions.next_page_number(), 'base_url' : request.path + '?sort=%s&' % view_id, - 'pagesize' : user_page_size + 'page_size' : user_page_size } }, context_instance=RequestContext(request)) @@ -139,4 +139,4 @@ def ask_book(request, short_name): 'form' : form, 'tags' : tags, 'email_validation_faq_url': reverse('faq') + '#validate', - }, context_instance=RequestContext(request))
\ No newline at end of file + }, context_instance=RequestContext(request)) |