mirror of https://github.com/jumpserver/jumpserver
fix: 修复 MAX_LIMIT_PER_PAGE, 默认值以及数据类型转换
parent
ff2aace569
commit
2aacb07b15
|
@ -567,6 +567,9 @@ class Config(dict):
|
||||||
|
|
||||||
# FTP 文件上传下载备份阈值,单位(M),当值小于等于0时,不备份
|
# FTP 文件上传下载备份阈值,单位(M),当值小于等于0时,不备份
|
||||||
'FTP_FILE_MAX_STORE': 100,
|
'FTP_FILE_MAX_STORE': 100,
|
||||||
|
|
||||||
|
# API 请求次数限制
|
||||||
|
'MAX_LIMIT_PER_PAGE': 100
|
||||||
}
|
}
|
||||||
|
|
||||||
old_config_map = {
|
old_config_map = {
|
||||||
|
|
|
@ -3,4 +3,4 @@ from rest_framework.pagination import LimitOffsetPagination
|
||||||
|
|
||||||
|
|
||||||
class MaxLimitOffsetPagination(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