Skip to content

Commit 8e34b2a

Browse files
author
yangxg
committed
fix: 默认分页项目数改为 10
1 parent 69a4cdf commit 8e34b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blog/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class IndexView(ListView):
3030
model = Post
3131
template_name = 'blog/index.html'
3232
context_object_name = 'post_list'
33-
paginate_by = 1
33+
paginate_by = 10
3434

3535
def get_context_data(self, **kwargs):
3636
"""

0 commit comments

Comments
 (0)