Skip to content

Commit

Permalink
Order the letters by date descending on backend (#1159)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
merito and pre-commit-ci[bot] authored Jan 4, 2022
1 parent ab19b82 commit 859b18c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend-project/small_eod/letters/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class LetterViewSet(viewsets.ModelViewSet, NotificationsView):
"modified_on",
"modified_by__username",
]
ordering = ["-date"]


class DocumentTypeViewSet(viewsets.ModelViewSet):
Expand Down

0 comments on commit 859b18c

Please sign in to comment.