Skip to content

Commit

Permalink
Spravny ordering Postov
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Dec 14, 2024
1 parent b41d2b6 commit 8b5bd0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 8b5bd0d

Please sign in to comment.