Show More
@@ -29,6 +29,7 b' DefaultTheme = md' | |||
|
29 | 29 | DefaultImageViewer = simple |
|
30 | 30 | LastRepliesCount = 3 |
|
31 | 31 | ThreadsPerPage = 3 |
|
32 | PostsPerPage = 10 | |
|
32 | 33 | ImagesPerPageGallery = 20 |
|
33 | 34 | MaxFavoriteThreads = 20 |
|
34 | 35 |
@@ -1,13 +1,14 b'' | |||
|
1 | 1 | from django.core.urlresolvers import reverse |
|
2 | 2 | from django.shortcuts import render |
|
3 | 3 | |
|
4 | from boards import settings | |
|
4 | 5 | from boards.abstracts.paginator import get_paginator |
|
5 | 6 | from boards.abstracts.settingsmanager import get_settings_manager |
|
6 | 7 | from boards.models import Post |
|
7 | 8 | from boards.views.base import BaseBoardView |
|
8 | 9 | from boards.views.posting_mixin import PostMixin |
|
9 | 10 | |
|
10 | POSTS_PER_PAGE = 10 | |
|
11 | POSTS_PER_PAGE = settings.get_int('View', 'PostsPerPage') | |
|
11 | 12 | |
|
12 | 13 | PARAMETER_CURRENT_PAGE = 'current_page' |
|
13 | 14 | PARAMETER_PAGINATOR = 'paginator' |
General Comments 0
You need to be logged in to leave comments.
Login now