From 8b5bd0dd5f971bbd060f7345ce8b203178c2f720 Mon Sep 17 00:00:00 2001 From: kovacspe Date: Sat, 14 Dec 2024 22:38:56 +0100 Subject: [PATCH] Spravny ordering Postov --- cms/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/views.py b/cms/views.py index 9a3ab8e..f908863 100644 --- a/cms/views.py +++ b/cms/views.py @@ -54,7 +54,7 @@ class PostViewSet(viewsets.ModelViewSet): filterset_fields = ['sites'] search_fields = ['caption', 'short_text', 'details'] ordering_fields = ['added_at', 'visible_until', 'visible_after'] - ordering = ['added_at'] + ordering = ['-added_at'] @action(detail=False) def visible(self, request):