# 分页使用page方法
This commit is contained in:
parent
8993ec8edc
commit
bf879bdc70
|
@ -114,7 +114,7 @@ class DeviceLogHistoryListAPIView(ListAPIView):
|
|||
serializer_class = DeviceLogHistorySerializer
|
||||
permission_classes = [IsAuthenticated]
|
||||
filter_backends = [SearchFilter, OrderingFilter]
|
||||
pagination_class = PostLimitOffsetPagination
|
||||
pagination_class = PostPageNumberPagination
|
||||
search_fields = ['device_id', 'date']
|
||||
|
||||
def get_queryset(self, *args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue