mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-30 22:15:02 +00:00
fix: 修复 MAX_LIMIT_PER_PAGE, 默认值以及数据类型转换
This commit is contained in:
parent
f21272af7d
commit
ed640e094f
@ -561,6 +561,9 @@ class Config(dict):
|
||||
|
||||
# FTP 文件上传下载备份阈值,单位(M),当值小于等于0时,不备份
|
||||
'FTP_FILE_MAX_STORE': 100,
|
||||
|
||||
# API 请求次数限制
|
||||
'MAX_LIMIT_PER_PAGE': 100
|
||||
}
|
||||
|
||||
old_config_map = {
|
||||
|
@ -3,4 +3,4 @@ from rest_framework.pagination import LimitOffsetPagination
|
||||
|
||||
|
||||
class MaxLimitOffsetPagination(LimitOffsetPagination):
|
||||
max_limit = settings.MAX_LIMIT_PER_PAGE or 100
|
||||
max_limit = settings.MAX_LIMIT_PER_PAGE
|
||||
|
Loading…
Reference in New Issue
Block a user