News updates (#6275)

* Set default ordering

* Order table by "most recent entries" by default
This commit is contained in:
Oliver authored and GitHub committed 2024-01-18 17:25:15 +11:00
1 parent b8b3dfc90e
commit 1d3a23ca4e
2 files changed
+3 -1

No files matched your search

+2
View File
@@ -402,6 +402,8 @@ class NewsFeedEntryList(NewsFeedMixin, BulkDeleteMixin, ListAPI):
filter_backends = ORDER_FILTER
ordering = '-published'
ordering_fields = ['published', 'author', 'read']
filterset_fields = ['read']