Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

设置Django Rest 框架的PAGE_SIZE导致资产树变成undefined #2724

Open
pythonwood opened this issue May 23, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@pythonwood
Copy link

commented May 23, 2019

[简述你的问题]
不能兼容DRF的分页设置,资产树变UNDEFINED
设置Django Rest 框架的PAGE_SIZE导致资产树变成undefined
注释分页就恢复

使用版本

master分支
a025930 - (grafted, HEAD, origin/master, origin/HEAD, master) Merge pull request #2642 from jumpserver/dev

问题复现步骤

1、git checkout master分支
2、修改settings,添加
`
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 5
,
访问/ops/command-execution/start/等地方

具体表现[截图可能会更好些,最好能截全]

image

其他

怪不得原来注释了
# 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
# 'PAGE_SIZE': 15

[注:] 完成后请关闭 issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.