From 8f865c26e2d2f6775a93c8ef45ef58d23a7f9d17 Mon Sep 17 00:00:00 2001 From: jaume Date: Thu, 16 Nov 2023 21:47:18 +0100 Subject: [PATCH] fixing a problem with the pagination --- server/finances/core/rest_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/finances/core/rest_api.py b/server/finances/core/rest_api.py index a0fb900e..b4d638ad 100644 --- a/server/finances/core/rest_api.py +++ b/server/finances/core/rest_api.py @@ -14,7 +14,7 @@ class RdsPagination(CustomCursorPagination): page_size = 20 page_size_query_param = 'page_size' max_page_size = 10000 - ordering = '-date' + ordering = ('-page_key') class RawDataSourceViewSet(viewsets.ReadOnlyModelViewSet, viewsets.mixins.CreateModelMixin):