From 9fe611a24c41d15ca85c6161d3a6abd1f23c9e2d Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 20 Feb 2025 12:11:55 -0800 Subject: [PATCH] Update views.py --- src/documents/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/views.py b/src/documents/views.py index bab20230d..08164a91f 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -2233,7 +2233,7 @@ class TasksViewSet(ReadOnlyModelViewSet): filterset_class = PaperlessTaskFilterSet def get_queryset(self): - queryset = PaperlessTask.objects.all().order_by("date_created").reverse() + queryset = PaperlessTask.objects.all().order_by("-date_created") task_id = self.request.query_params.get("task_id") if task_id is not None: queryset = PaperlessTask.objects.filter(task_id=task_id)