forked from erp-dev/erp
fix: plate_date_from and plate_date_to query fixed range for plate_order query api
This commit is contained in:
@@ -11,12 +11,12 @@ class LimitedLimitOffsetPagination(LimitOffsetPagination):
|
||||
"""
|
||||
带最大限制的 LimitOffsetPagination
|
||||
|
||||
- 默认每页返回 100 条
|
||||
- 最大每页返回 100 条
|
||||
- 默认每页返回 500 条
|
||||
- 最大每页返回 500 条
|
||||
- 防止前端请求过多数据
|
||||
"""
|
||||
default_limit = 300
|
||||
max_limit = 300
|
||||
default_limit = 500
|
||||
max_limit = 500
|
||||
|
||||
|
||||
class LimitedModelViewSet(viewsets.ModelViewSet):
|
||||
|
||||
Reference in New Issue
Block a user