From 859b18c361279b01f499627911641912ed61476b Mon Sep 17 00:00:00 2001 From: Dawid Wolski Date: Wed, 5 Jan 2022 00:33:55 +0100 Subject: [PATCH] Order the letters by date descending on backend (#1159) * Order the letters by date descending * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- backend-project/small_eod/letters/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend-project/small_eod/letters/views.py b/backend-project/small_eod/letters/views.py index d4cf13fab..59def54a8 100644 --- a/backend-project/small_eod/letters/views.py +++ b/backend-project/small_eod/letters/views.py @@ -44,6 +44,7 @@ class LetterViewSet(viewsets.ModelViewSet, NotificationsView): "modified_on", "modified_by__username", ] + ordering = ["-date"] class DocumentTypeViewSet(viewsets.ModelViewSet):