Skip to content

Commit

Permalink
解决分页只能显示20个的问题 close #4
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed May 9, 2017
1 parent 5d5bd05 commit 1672d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmdb/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def pages(post_objects, request):
page public function , return page's object tuple
分页公用函数,返回分页的对象元组
"""
paginator = Paginator(post_objects, 20)
paginator = Paginator(post_objects, 65535)
try:
current_page = int(request.GET.get('page', '1'))
except ValueError:
Expand Down

0 comments on commit 1672d49

Please sign in to comment.