mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 19:15:41 +00:00
News updates (#6275)
* Set default ordering * Order table by "most recent entries" by default
This commit is contained in:
@ -402,6 +402,8 @@ class NewsFeedEntryList(NewsFeedMixin, BulkDeleteMixin, ListAPI):
|
|||||||
|
|
||||||
filter_backends = ORDER_FILTER
|
filter_backends = ORDER_FILTER
|
||||||
|
|
||||||
|
ordering = '-published'
|
||||||
|
|
||||||
ordering_fields = ['published', 'author', 'read']
|
ordering_fields = ['published', 'author', 'read']
|
||||||
|
|
||||||
filterset_fields = ['read']
|
filterset_fields = ['read']
|
||||||
|
@ -25,7 +25,7 @@ function loadNewsFeedTable(table, options={}, enableDelete=false) {
|
|||||||
name: 'news',
|
name: 'news',
|
||||||
groupBy: false,
|
groupBy: false,
|
||||||
queryParams: {
|
queryParams: {
|
||||||
ordering: 'published',
|
ordering: '-published',
|
||||||
read: false,
|
read: false,
|
||||||
},
|
},
|
||||||
paginationVAlign: 'bottom',
|
paginationVAlign: 'bottom',
|
||||||
|
Reference in New Issue
Block a user